Link to home
Create AccountLog in
Avatar of projects
projects

asked on

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);
ASKER CERTIFIED SOLUTION
Avatar of Loganathan Natarajan
Loganathan Natarajan
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of projects
projects

ASKER

The line before that is;

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

Your example link doesn't seem to lead to anything.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
So it's just a warning, nothing to be concerned about? Or, does it possibly mean it is not finding the data?
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Ok, so it looks like the programmer just missed this because everything else is using mysqli.
He just needs to update this then.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.