<?php
$host="127.0.0.1";
$user="root";
$passwd="1234";
$dbname="custom-guitar";
mysql_connect($host,$user,$passwd) or die ("ติดต่อ host ไม่ได้");
mysql_select_db($dbname) or die ("!Database is not");
$sql="select * from Member where UserName='$UserName' OR Email='$Email' ";
$dbquery=mysql_db_query($dbname,$sql);
$result = mysql_fetch_array($dbquery);
if($result)
{
echo "Repeatedly !";
}
else
{
echo "Available.";
}
mysql_close();
?>