$result=mysql_query("select * from user where user_name='$sess_username'",$connect);
$result=mysql_query("update user set user_name='$user_edit',user_fname='$fname_edit',user_lname='$lname_edit',user_email='$email_edit',
user_add='$add_edit',user_tel='$phone_edit',user_pict='$pict_edit',user_date='$date_edit' where user_name='$sess_username'",$connect);
เป็น Code (PHP)
$result=mysql_query("select * from user where user_name='$sess_username' ");
และ Code (PHP)
$result=mysql_query("update user set user_name='$user_edit',user_fname='$fname_edit',user_lname='$lname_edit',user_email='$email_edit',
user_add='$add_edit',user_tel='$phone_edit',user_pict='$pict_edit',user_date='$date_edit' where user_name='$sess_username' ");