pfft, MySql is evil, satins preferred language.
anyway.
code:
$database = 'rcbb';
$table = 'post';
$usernametable= 'users';
$query="SELECT * FROM `$usernametable` WHERE `username` = '$Username' ";
^^ this code doesnt work.
quote:
Originally posted by PHP Error
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in c:\program files\easyphp1-7\www\create.php on line 23
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in c:\program files\easyphp1-7\www\create.php on line 24
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in c:\program files\easyphp1-7\www\create.php on line 25
but...
code:
$query="SELECT * FROM `$table` WHERE `id` = '$ThreadID' ";
works in a different script, username and password is pre-varibilised.
if you need more information ill post it.
does anyone know why?