Warning:mysql_fetch_array () expects parameter 1, how to fix

Source: Internet
Author: User
Warning:mysql_fetch_array () expects parameter 1
Warning:mysql_fetch_array () expects parameter 1 to BES resource, boolean given in/home/kxmusic/test.php on line 8


I use XAMPP for Linux edition
The local machine WAMP can be used
But this error occurred last time you went to the server.
Please advise


PHP Code
  
  ";  echo "Logout";  }else{echo "Password or user name error";  Session_destroy (); + 28 in?>
  
   
  29 30<title>:: Open Heart Powder Net:: Happy Music Room</title> 


config.php
PHP Code
  
  ' + ') {echo "Login timeout";  Exit ();  Session_destroy ();  }else{$_session[times]=mktime (); Notoginseng}?>


------Solution--------------------
Var_dump ($query); What does this show?
$row =mysql_fetch_array ($query);
------Solution--------------------
Query returned an incorrect result. Should be an object,
$query =mysql_query ($sql) or Die (Mysql_error ());

Turn the error mode on so that there is no such problem because your error level is too high!

discuss
Var_dump ($query);
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.