include("../includes/common.htm");
if ($job==2) { $sid="dbid"; } else { $sid="id"; }
if (($fid) && ($status=='save')) {
if (($country!='USA') && ($country!='Canada')) { $state=""; }
$update="update $table[$job] set country='$country',city='$city',state='$state' where $sid='$fid'";
if ($admin) $msg="$update
";
$updaterec = mysql_query("$update") or $msg.="Unable to update record, contact admin.
";
if ($updaterec!='') { $msg.="Record successfully updated. "; }
}
$qry="select country,city,state from $table[$job] where $sid='$fid'";
$rec=SelectQry($qry);
if ($rec[0]['country']=='USA' || $rec[0]['country']=='Canada') { $style="visibility:visible;position:relative"; } else { $style="visibility:hidden;position:absolute"; }
?>