Okay, I have a little hack for login. Basically, if you type in the correct email and password, it'll add your email into a table called "CurUser". Now, when the user clicks the Logout button, I want his email to be removed from CurUser.
So, in the end, I just wanna remove the one and only entry in CurUser table.
So, the user clicks a button, and gets brought to my logout.php.
php Code:
Original
- php Code |
|
|
|
$sql = "DELETE FROM curuser WHERE email='admin'";
Where $connection is my whole connection stuff (OCILogon with my username, password, yadda yadda).
So, I get the error of...
Warning: mysql_query(): supplied resource is not a valid MySQL-Link resource in /home/ug/louiepa/www/actionLogOut.php on line 51.
Note, line 51 is the mysql_query stuff.
Any clue?