ardyandkari Posted January 17, 2007 Share Posted January 17, 2007 ok here's the deal, i have a site set up where customers can come in and add their own information to it...i know that i am going to have to add a password protect to the site...probably to the entire dircectory. my question is this though...when doing passwords and such should i have an id field in the database? i didnt put one in because when inputting their data the sql returned the fact that they didnt have anything in the id field even though it was auto_increment...should i put in the id and use a_i? if so, how do i have the input form do the id portion?thanks Quote Link to comment Share on other sites More sharing options...
fenway Posted January 18, 2007 Share Posted January 18, 2007 I don't understand at all. Quote Link to comment Share on other sites More sharing options...
ardyandkari Posted January 18, 2007 Author Share Posted January 18, 2007 ok... here are the fields in my database:nametypephone countycitydescriptionemailwebshould i have an id field with auto_increment on? i want to have a customer login page where they can change their information (essientally they would be changing their database entry.)just wondering if not having one would screw things up... Quote Link to comment Share on other sites More sharing options...
fenway Posted January 19, 2007 Share Posted January 19, 2007 You should almost always have a UID field, yes... Quote Link to comment Share on other sites More sharing options...
ardyandkari Posted January 19, 2007 Author Share Posted January 19, 2007 when i first made the database i had a uid field in it, but when submitting the form it wouldnt accept it because i didnt have anything in the field. should i make a hidden field that is blank? Quote Link to comment Share on other sites More sharing options...
ardyandkari Posted January 21, 2007 Author Share Posted January 21, 2007 [size=400pt]solved[/size] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.