NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page make sure user doesnt exist.......

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 07-27-2003, 08:22 AM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer

make sure user doesnt exist.......


hi im building a user system and its all working except the bit where the user already exists

anyone got any ideas how i should go about checking for duplicate users
adam_uk is offline  
Old 07-27-2003, 09:56 AM   #2 (permalink)
NamePros Member
Join Date: Jul 2003
Posts: 118
web guru is an unknown quantity at this point
 



Not sure if theres any special way of doing this, but I take it your checking for duplicate users every time someone logs into the system. If I am correct in assuming this you could simply add a boolean field called 'logged_in' to your database where you check your passwords. eg.

user already logged in = 1
user not already logged in = 0

Check this field every time a user tries to log in. If its set to 0 log the user in and set the field = 1. If the user is already logged in (field = 1) redirect the user to another warning page.

Not sure if thats any help just made it up of the top of my head there now.
web guru is offline  
Old 07-27-2003, 02:27 PM THREAD STARTER               #3 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
thanks ive sorted it, not sure if i took the long way round but when i add a user it trys to select that user from the database if it does then then errors if it doesnt select it it adds it
adam_uk is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 02:19 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger