hiii i am new in php i am creating login script.the user successfully login an go to profile page he can update any statement an show to all user home page.but i have problem user can update any statement display own statement in profile page.i am using two tables registration an status.the registration table can use user information an status table can use user update status...how it is possible. Thanks..
Depending on the fields in the form and the script processing the form submission you can send one, two or even 100 sql updates to the database. Are you using a framework like cakephp or doing it all from scratch? If you are a real newbie you may benefit from building your site around something like Joomla or Wordpress You will benefit from * increased security from sql injections and other nastys you don't have time to learn about before they become a problem * out of the box functionality you may not have even considered * best practice coding (hopefully) that will show you how good code is written, structured and even documented don't underestimate the learning potential from using one of these systems and you'll feel like a webmaster much more quickly.