include("../includes/common.htm");
//if ($id=='') { $id=$_GET['id']; }
$status=$_POST['status'];
if (($fid) && ($pid=="") && ($status=='save')) {
if (!eregi("Please give us a brief description of yourself",$textarea)) {
$update="update $table[$job] set MyStyle='$textarea' where $sid[$job]='$fid'";
//print "$update
";
$updaterec = mysql_query("$update") or $msg="Unable to update, contact admin.
";
if ($updaterec!='') { $msg="Record successfully updated."; }
}
}
if (($admin) && ($pid!="") && ($status=='save')) {
$update="update $table[$pjob] set MyStyle='$textarea' where $sid[$pjob]='$pid'";
$updaterec = mysql_query("$update") or $msg="Unable to update, contact admin.
";
$msg.="$update
";
if ($updaterec!='') { $msg.="Record successfully updated."; }
}
if ($pid!="") { $qry="select MyStyle from $table[$pjob] where $sid[$pjob]='$pid'"; }
else { $qry="select MyStyle from $table[$job] where $sid[$job]='$fid'"; }
//$qry="select MyStyle from $table[$pjob] where id ='$pid'";
$rec=SelectQry($qry);
?>