|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
syntax issues???
I keep getting :
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/edsa55/public_html/regist.php on line 67 below are lines 63 - 75.. I'm at a loss.. any coaching would be appreciated. Thanks!! <? unset($value, $error); if ($email!=NULL) { if ($email==$email2) { $a=mysql_fetch_array(mysql_query("SELECT * FROM users where user='$email'")); if ($a[user]==NULL) { $value="disabled=true value=\"$email\""; echo "<input type=\"hidden\" name=\"email\" value=\"$email\">"; echo "<input type=\"hidden\" name=\"email2\" value=\"$email\">"; $vcxz++; } else $error="e-Mail allredy taken"; } else $error="e-Mails do not match"; } ?> |
|
#2
|
||||
|
||||
|
Check that your query is returning anything...
Try using the query in MySQL directly (via command line)... Oftne the reason is that $email is empty. An easy way to debug: PHP Code:
|
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > syntax issues??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|