• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

php warning: mysql_fetch_row()

I have no idea if someone can help me with this or not but since my programmer is gone for 24hrs, I need to ask someone.

I am seeing the following error in the apache logs;

PHP Warning:  mysql_fetch_row() expects parameter 1 to be resource, string given in app.php on line 103

Line 103 is;

$select = mysql_fetch_row($query);
0
projects
Asked:
projects
4 Solutions
 
Loganathan NatarajanLAMP DeveloperCommented:
Check before this line whether you've execute the query with result. Example,
0
 
projectsAuthor Commented:
The line before that is;

$result = execQuery($dbconn,$query);

Your example link doesn't seem to lead to anything.
0
 
GaryCommented:
Means the query failed so there are no rows to fetch
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
projectsAuthor Commented:
So it's just a warning, nothing to be concerned about? Or, does it possibly mean it is not finding the data?
0
 
Dave BaldwinFixer of ProblemsCommented:
0
 
projectsAuthor Commented:
Ok, so it looks like the programmer just missed this because everything else is using mysqli.
He just needs to update this then.
0
 
GaryCommented:
Not really a warning, when executing the query something went wrong i.e. your sql is wrong
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now