Jump to content

Archived

This topic is now archived and is closed to further replies.

xtiancjs

deleting user id from DB

Recommended Posts

HI, am having some major trouble with this one.

I have set up a user login system. The user id # is stored in a mysql DB.

So far so good. The user has been given a "one use only" user #.

When the user logs out, I want to be able to delete that particular users id # from the DB.

 

This I have failed to do. Please help!!

Share this post


Link to post
Share on other sites

Well, on your logout page or in your logout function, just have a query to delete the current userid.

 

Here is the sql syntax you would use to delete the user

 

"DELETE FROM table WHERE userid = user_id"

 

Jeremy

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.