I checked the other messages regarding this topic and thought I had the answer BUT it doesn't seem to work for me and i'm not sure why.
Here's the error I get:
Warning: Supplied argument is not a valid MySQL-Link resource in c:\phpweb/ldscalgary/newmemberacceptance.php on line 69
Warning: Supplied argument is not a valid MySQL result resource in c:\phpweb/ldscalgary/newmemberacceptance.php on line 70
The following are lines 69 and 70 along with the surrounding statement:
$result = mysql_query("SELECT * FROM clients WHERE CUserName LIKE '$CUserName'",$db);
if ($myrow = mysql_fetch_array($result))
{
print "I'm sorry, the user name you selected is currently in use, please select another.<BR>Please press on the back button of your browser.";
exit;
}
else
{
<INSERT STUFF INTO DATABASE>
}