global $current_user;
if (isset($current_user)) {
$name=$current_user->user_login;
}
$edit=$_GET['edit'];
$first=$_POST['first'];
$last=$_POST['last'];
$profil=$_POST['profil'];
if(isset($_POST['profil'])) {
$upd1=mysql_query(“update wp_usermeta set meta_value=’$first’ where user_id=’$edit’ AND meta_key=’first_name'”);
$upd2=mysql_query(“update wp_usermeta set meta_value=’$last’ where user_id=’$edit’ AND meta_key=’last_name'”);
header(“Location:http://www.netstuffersdev7.com/profile”);
}
$fwd=mysql_query(“select * from wp_users where user_login=’$name'”);
$z=mysql_fetch_array($fwd);
$zid=$z['ID'];
$umeta1=mysql_query(“select * from wp_usermeta where user_id=’$zid’ and meta_key=’first_name'”);
$met1=mysql_fetch_array($umeta1);
$umeta2=mysql_query(“select * from wp_usermeta where user_id=’$zid’ and meta_key=’last_name'”);
$met2=mysql_fetch_array($umeta2);
?>


Your Profile (Username :
First Name : Last Name : Email :