$sql="select * from customer where id = '$id'";
$exec = odbc_exec($connect,$sql);
$num_rows = odbc_num_rows($exec);
if (odbc_num_rows($exec) ==0)
{
echo"<center><br>รหัส Id นี้มีอยู่แล้ว </center>";
exit();
}
else