| | |
Help needed with script
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
U can more or less use the same form that they used to sign up, but when this page loads use a SELECT * User_dtls and input that data into the form. Now obviously you wouldn't want them to change certain info so it's up to you to decide what they can & can't change ... aka they cant change the acct_created column (account created, if you have one in there, etc, etc...)
once that is done and the user clicks submit/save/update or whatever then go through your same data validation scheme that you did during signup... Once that is done you will be able to use the UPDATE command, for instance
UPDATE User_dtls SET first_name='$first_name', last_name='$last_name' WHERE user_name='$user_name'
yadda yadda yadda, DO NOT forget the WHERE option or you will end up changing EVERYONE's details (a very bad thing indeed!!!)
i sure hope this helps!
once that is done and the user clicks submit/save/update or whatever then go through your same data validation scheme that you did during signup... Once that is done you will be able to use the UPDATE command, for instance
UPDATE User_dtls SET first_name='$first_name', last_name='$last_name' WHERE user_name='$user_name'
yadda yadda yadda, DO NOT forget the WHERE option or you will end up changing EVERYONE's details (a very bad thing indeed!!!)
i sure hope this helps!
![]() |
Similar Threads
- How do I? Edit Crontab using a Script? (Shell Scripting)
- someone please help me (Windows NT / 2000 / XP)
- Third Quotation Type (PHP)
- Help needed in this script (Shell Scripting)
- dvd writing script (*nix Software)
- writing a script (Shell Scripting)
Other Threads in the PHP Forum
- Previous Thread: Need Help with Side Nav Include
- Next Thread: A php question
| Thread Tools | Search this Thread |
advanced apache api array beginner binary broken cakephp check checkbox class cms code cookies cron curl database date datepart display dropdownlist dynamic echo email eregi error execution file files folder form forms function functions google head href htaccess html if...loop image include includingmysecondfileinthechain insert ip javascript job joomla jquery key library limit link login mail menu mlm multiple mysql oop password paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote screen script search server sessions smarty sms sorting source space sql startup stored syntax system table traffic tutorial unicode update upload url validator variable video web youtube zend





