MySQL query returns unrelated value?

Here’s an example:

$query = "SELECT * FROM clans WHERE Id = '11' AND Name = 'donk'";
$result = mysql_query($query);

And then trying to echo anything from $result just returns completely empty, even though I have this one in my database

Id  Name Count  Tokens  HP
11  donk 332986 6123350 9065000

Shouldn’t the query be correct in that case?

So echoing it gives me this:

Resource id #15


Source: php

Leave a Reply