vendredi 22 juillet 2016
When using mysql to check for a value, it doesn't return anything? [on hold]
So, I have a mysql table named: "cake_users"
Here's what it looks like and how it's structured
1 name1 4588yrue38r authkey114
2 name2 4o857398563 authkey124
3 name3 93784ee8753 authkey115
4 name4 12345678910 authkey164
id, name, hwid, authkey
I'm trying to run this query:
$hwidid = "'12345678910'";
$cakequery = mysql_query("SELECT * FROM cake_users WHERE hwid = {$hwidid}");
if(mysql_num_rows($cakequery) == 0) {
echo 'FALSE';
} else {
echo 'TRUE';
}
But it always echo's false even though 12345678910 is in the database?
What am I doing wrong?
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire