Selecting the Strongest Character?
I've got somewhat of an RPG system going on, and I want to select and display the strongest member from a table.
I think it should look something like...
$strongguy = $DB_site->query("SELECT * FROM table ORDER BY column DESC LIMIT 1");
After which, I would put {$strongguy['name'} in the template, but I seem to get some kind of resource error each time. Is something wrong with my query?
|