Impossible, as it is connecting to localhost not the nivade IP for the db.
Printable View
http://zetolic.com/social/ try and register, register apparently works but the login doesn't and theres nothing in phpmyadmin
I've done a core, similar to yours, that has the line:
But I get this error;PHP Code:$check_ban_number = mysql_fetch_object( $check_ban );
Any ideas, is it worth contacting host or is it a bad php mistake?Quote:
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in \\nas-001\winspace002\10-didehvar.com\www\fivid\includes\core.php on line 23
Full File:
Thanks, a nice bit of code to play around with :)
Just added myself to the table, and still doesn't work. I do have all them fields...
Anyone have any ideas?
Edit: Found problem, I was connecting to table instead of database.
(DUH)
Edit2: Now it's saying I'm banned, when I'm not even logged in and the field isn't set to true..
Can't edit:
Is it because its doing this:
But the session username hasn't been set?PHP Code:$username = $_SESSION['username'];
$check_ban = mysql_query( "SELECT * FROM `user_data` WHERE `username` = '$username'");