$sql = "select count(*) as countrow from flowmail where femail = $femail and access = $access ";
$result = mysql_query($sql) or exit($sql);
$row = mysql_fetch_array($result);
if ($row['countrow'] >0)
exit("<script>alert('Please change femail and access There only 1 person');history.back();</script>");
$sql = "select count(*) as countrow from flowmail where femail = $femail and access = $access ";
$result = mysql_query($sql) or exit($sql);
$row = mysql_fetch_array($result);
if ($row['countrow'] >0)
exit("<script>alert('Please change femail and access There only 1 person');history.back();</script>");
$sql1 = "update flowmail set
femail = '$femail ',
access = '$access'
where id = '$id'";
mysql_query($sql1) or die(mysql_error());
echo "<script>alert('Update Complete');window.location='showlist.php';</script>";