Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Are you sure your query returns what you think ?
Try to make an echo() of it in the web page, and run it on the server directly, it may be the problem.
As mysql_fetch_array returns an array(obviously), if you use PHP5, the interator interface allows you to go through the array with a simple foreach.
So, if your array contains 17 rows, it would display 17 results...
Try to do a
PHP Code:
$Rec2 = mysql_fetch_array(mysql_query("SELECT Username FROM users WHERE Username != '$_COOKIE[user]'")); echo"<pre>".print_r($Rec2,1)."</pre>";
to dump the structure of the array returned from your query.
Maybe you will spot something
__________________
Only a biker knows why a dog sticks his head out the window.
|