When I use
mysql_affected_rows($result);
…in php then I get below warning how to remove it?
Warning: mysql_affected_rows(): supplied resource is not a valid MySQL-Link resource in C:\wamp\www\st_db_1\search_db.php on line 60
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume $result = mysql_query() ??
Don’t pass it that variable, you can pass it the connection link $variable or just use mysql_affected_rows();