Hello,
This is really bugging me and I know it will be a really easy fix. What I am trying to do is run the following mysql_query:
$temp = mysql_query("SELECT * FROM client_contacts WHERE primary='1'", $db);
while ($con = mysql_fetch_array($temp)) {
echo $con[name];
}
In the database primary is an "INT" and there is one entry in it that has a value of 1. I don't see what the problem is here... I have verified the name of the field and everything, please help me!
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/regan/web/protekcs/admin/new/windows/cu/edit.php on line 57
What is wrong with my query? Is there some reason why I cannot use primary as a field name?
Thanks for your help!
-Regan