I have a mysql query which appears to not be working. Every time I run the script, I get the following error;
Warning: mysql_result(): supplied argument is not a valid MySQL result resource
The row in the database where id=1 is the first row (0).
I have predefined a few variables here for simplicity purposes, so dont ask why I didnt just replace $t with 0 in the mysql_result.
$t=0;
$sql = 'SELECT `name`,`id`,`fid`,`thread_start`,`thread_recent`,`creation`,`modification`,`postcount`,`post` FROM `guide` WHERE `id` = 1';
$title=mysql_result($sql,$t,"name");