|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
trouble with mysql_fetch_array
I'm either haveing trouble w/ mysql_fetch_array or mysql_query because I keep getting this error...
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/captains/www/www/bandonly/validate.php on line 6 Here is my code... login is a 2 field data base w/ name and pw fields. name is the PRIMARY and INDEX. Both types are varchar(30). |
|
#2
|
||||
|
||||
|
RE: trouble with mysql_fetch_array
That means that 1 of 2 things happened:
1. An error occured in your query. 2. No results were returned from your query. For error tracking add "or die(mysql_error())" after your query. (mysql_query("select...") or die(mysql_error());) Throw an if statement in to see if any results were returned($row=@mysql_fetch_array($result); if($row) {...) |
|
#3
|
|||
|
|||
|
RE: trouble with mysql_fetch_array
|
|
#4
|
||||
|
||||
|
RE: trouble with mysql_fetch_array
In the query change name=$name to name='$name'
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > trouble with mysql_fetch_array |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|