I am getting these errors:-
Warning: mysql_real_escape_string() expects parameter 2 to be resource, object given in /home/androidappaniacm/public_html/ask/qa-external/qa-external-users.php on line 212
Warning: mysql_query() expects parameter 2 to be resource, object given in /home/androidappaniacm/public_html/ask/qa-external/qa-external-users.php on line 214
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, null given in /home/androidappaniacm/public_html/ask/qa-external/qa-external-users.php on line 215
I think, I am not able to configure the MySQL part given below:-
$qa_db_connection=qa_db_connection();
$result=mysql_fetch_assoc(
mysql_query(
"SELECT email FROM users WHERE id='".mysql_real_escape_string($userid, $qa_db_connection)."'",
$qa_db_connection
)
);