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 Link to comment https://forums.phpfreaks.com/topic/34645-adding-to-site-need-opinions/ Share on other sites More sharing options...
fenway Posted January 18, 2007 Share Posted January 18, 2007 I don't understand at all. Link to comment https://forums.phpfreaks.com/topic/34645-adding-to-site-need-opinions/#findComment-163337 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... Link to comment https://forums.phpfreaks.com/topic/34645-adding-to-site-need-opinions/#findComment-163583 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... Link to comment https://forums.phpfreaks.com/topic/34645-adding-to-site-need-opinions/#findComment-164173 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? Link to comment https://forums.phpfreaks.com/topic/34645-adding-to-site-need-opinions/#findComment-164354 Share on other sites More sharing options...
ardyandkari Posted January 21, 2007 Author Share Posted January 21, 2007 [size=400pt]solved[/size] Link to comment https://forums.phpfreaks.com/topic/34645-adding-to-site-need-opinions/#findComment-165580 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.