xtiancjs Posted July 31, 2005 Share Posted July 31, 2005 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!! Link to comment https://forums.phpfreaks.com/topic/2431-deleting-user-id-from-db/ Share on other sites More sharing options...
jeremywesselman Posted August 1, 2005 Share Posted August 1, 2005 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 Link to comment https://forums.phpfreaks.com/topic/2431-deleting-user-id-from-db/#findComment-8042 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.