Mysql error - supplied argument is not a valid MySQL result resource -


i need error:

warning: mysql_fetch_assoc(): supplied argument not valid mysql result resource in *****/log.php on line 15.

here line 15:-

$query = "select count(id) amt users name='$username' password='$password'"; $q = mysql_query($query,$c); $user = mysql_fetch_assoc($q); // line 15 $amt_found = (int)$user['amt']; 

you're missing and

$query = "select count(id) amt users name='$username' , password='$password'"; $q = mysql_query($query,$c); $user = mysql_fetch_assoc($q); // line 15 $amt_found = (int)$user['amt']; 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -