It says "mysql_num_rows or mysql_fetch_array(): supplied argument is not a valid MySQL result resource"
Offline
Then maybe the problem isn't with the command, but with the variable $username
Check again.
Offline
As I said in the other topic set the $username variable.
Offline
The username variable IS set. I even tried using WHERE To = 'Gopher' but still doesn't work
Offline
WHERE To='$username'
but make sure the whole thing is in "" (double quotes/speech marks)
Edit: Also the fact that the To column has a capital T might be doing it, unlikely but possible.
Last edited by rookwood101 (2011-11-04 13:55:26)
Offline
Give us all the code, for the web page, remember to censor the passwords.
( I put my password into a config.php file so all I need to do is include it into the file and if I need help, it won't be showing in the document )
Edit: I feel so stupid, change "to" and "from" to something else like "receiver" and "sender" it didn't work for me with the "to" column but it did with "receiver"
Last edited by Magnie (2011-11-04 15:15:05)
Offline
Magnie wrote:
Give us all the code, for the web page, remember to censor the passwords.
( I put my password into a config.php file so all I need to do is include it into the file and if I need help, it won't be showing in the document )
Edit: I feel so stupid, change "to" and "from" to something else like "receiver" and "sender" it didn't work for me with the "to" column but it did with "receiver"
Well I'll be eaten - it worked! Thanks! This topic is closed!
Offline