in reply to Using Multiple Statements MySQL
$sth = $dbh->prepare("SELECT id,name FROM category WHERE parent IS NUL +L"); $sth->execute or die $dbh->errstr; while ( @slog = $sth->fetchrow_array ) { $sth2 = $dbh->prepare("SELECT id,name FROM category WHERE parent = + '$slog[0]'"); $sth2->execute or die $dbh->errstr; ...
|
---|