Warning: mysql_fetch_array () expectsparameter1Warning: mysql_fetch_array () expectsparameter1toberesource, booleangiven Warning: mysql_fetch_array () expects parameter 1
Warning: mysql_fetch_array () expects parameter 1 to be resource, boolean given in/home/kxmusic/test. php on line 8
I use XAMPP for linux
WAMP can be used on the local machine
However, this error occurs the last time I arrived at the server.
Please advise
PHP code
"; 17 echo" logout "; 18} else {19 echo" incorrect password or user name "; 20 session_destroy (); 21} 22 23} 24 25 26 27?> 28
29 30: Happy sausage powder network: happy music room
Config. php
PHP code
'200') {32 echo "logon timeout"; 33 exit (); 34 session_destroy (); 35} else {36 $ _ SESSION [times] = mktime (); 37} 38} 39?>
------ Solution --------------------
Var_dump ($ query); // what is displayed here
$ Row = mysql_fetch_array ($ query );
------ Solution --------------------
The query result is incorrect. It should be an object,
$ Query = mysql_query ($ SQL) or die (mysql_error ());
Enable the error mode, so that you will not have this problem, because your error prompt level is too high!
Discussion
Var_dump ($ query );