/ Published in: PHP
Expand |
Embed | Plain Text
$returnarray[] = $row; } return $returnarray;
Comments
Subscribe to comments
You need to login to post a comment.
Tate on 06/13/08
3 people have marked this snippet as a favorite
$returnarray[] = $row; } return $returnarray;
Subscribe to comments
You need to login to post a comment.
hmm why not die(mysqlerror()) or die(mysqlerror().$query) getting the query but with the actual error message ? and there must be some reason for that line I just don't seem to see it - $returnarray = array ();
You can return the results as an array with one line: while($rows[] = mysqlfetchassoc($result)); Then array_pop($rows) and finally return $rows;