Try this

$query = "SELECT credits FROM krypto WHERE user='$user' AND pass='$pass'";

That should work better then the original query...


Best regards

Andi

Squeakypants schrieb:
From a forum that recommended this to me, I changed the query execution to this:
$query = "SELECT credits FROM krypto WHERE user=$user AND pass=$pass";
echo "query = ". $query ."\n";
$result = mysql_query($query);
echo "result = ". $result ."\n";

So now it outputs this:
query = SELECT credits FROM krypto WHERE user=admin AND pass=xxxxxxxx
result = Could not run query: Unknown column 'admin' in 'where clause'



-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to