Jump to content

[SOLVED] simple sql problem


Pyro4816

Recommended Posts

OK, i have a code that works fine, except that it wont return the first result.
[code] $result = $connector->query("SELECT * FROM messages WHERE r='0'");
$row = $connector->fetchArray($result);
while ($row = $connector->fetchArray($result)){
echo $row['t'];
echo '<br />';
}[/code]
no in the database there are two items that have read set as 0, but it only returns the second one on, like i had 4 and it only returned 3. anyone know what im doing wrong?
Link to comment
https://forums.phpfreaks.com/topic/31654-solved-simple-sql-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.