Fetches all but one?!
Posted: Sun Jun 12, 2011 11:45 pm
In my table I have A B C D,
$mysql->query(" SELECT `name` FROM `categories` ORDER BY `name` ASC "); $mysql->fetch($row); $return = array(); while ($mysql->fetch($row)){ $return[] = $row; } return $return;and then,
foreach($rows as $row) { echo $row['name']; echo "<br />"; }but here is the weird thing, it only echoes B C D and if I change the order to DESC it echoes C B A I never run into this problem before