apache error_log shows no error! perl.exe still runs ...the select statement SELECT table1.id, table1.id2, table1.id3 ,table2.name FROM table2, table1 WHERE table1.id = 'something' and table1.id=table2.idmy ($result_ref, $columnNames_ref, $numFields) = fetchRowArray($dbh, +$sql); ... sub fetchRowArray($$){ my $dbh = shift; my $sql = shift; my $sth = $dbh->prepare($sql) or meldeFehler("Statement could not pr +epared"); $sth->execute() or meldeFehler("Statement could not executed"); my $columnNames; $columnNames = $sth->{NAME}; my $numfields; $numfields = $sth->{NUM_OF_FIELDS}; my (@matrix) = (); while (my @ary = $sth->fetchrow_array()) { push(@matrix, [@ary]); } $sth->finish(); return \@matrix, $columnNames, $numfields; }
In reply to Re: mysql perl hangs on selects by Murcia
in thread mysql perl hangs on selects by Murcia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |