This warning does not know how to solve mysql_fetch_array () expectsparameter1toberesource

Source: Internet
Author: User
This Warning does not know how to solve mysql_fetch_array () expectsparameter1toberesource Warning: mysql_fetch_array () expects parameter 1 to be resource, boolean given in/data/multiserv/users/983917/projects/2245004/www/view. php on line 42

This warning is not reported when debugging on the local server. uploading to the remote server appears... and I have no permission to modify the configuration of the remote server.

View. php
PHP
 
 
Store name

Phone Number

Diners rating (0 ~ 10)

"; Echo" rating: ". $ result5 ['count'];?>

Menu

"; $ I ++;} while ($ result3 = mysql_fetch_array ($ result2) ;}?>

 

Remarks

Rating of diners

"; $ I ++;} while ($ result4 = mysql_fetch_array ($ commentquery, $ mylink);} else {echo" no comment, we look forward to your participation ";}?>

To the store

Rating

"> Previous //"> Next


Reply to discussion (solution)

This warning has not been reported for locally debugged apache display_error = on.

Which line is 42? If you add an or die, a message is displayed.
Mysql_query ($ comment, $ mylink) or die (mysql_error ());

$ Result5 = mysql_fetch_array ($ levelquery );
$ Result4 = mysql_fetch_array ($ commentquery, $ mylink );
$ Result3 = mysql_fetch_array ($ result2 );

Errors are reported for mysql_fetch_array.

Which line is 42? If you add an or die, a message is displayed.
Mysql_query ($ comment, $ mylink) or die (mysql_error ());

Post the error message changed to #2

Include ("conn. php"); // add below this line
Echo $ mylink; // Paste the result

I suspect the database is not connected successfully

Resource id #1 does not know what it represents include ("conn. php"); // add it below this line
Echo $ mylink; // Paste the result
I suspect the database is not connected successfully

#2 is obtained from the original code .. I don't quite understand what you mean by posting the error message after #2.

I forgot to synchronize the database... the resource id #1 doesn't know what the reference to the reply on the 5th floor is:
Include ("conn. php"); // add below this line
Echo $ mylink; // Paste the result
I suspect the database is not connected successfully

This East I still has no sister ue

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.