if ($user_login=="" and $pass_login=="") {
echo "<h3>¡ÃسҡÃÍ¡¢éÍÁÙÅãËé¤Ãº´éǤÃѺ<h3>"; exit();
}
include "connect.php";
$sql="select * from tb_member where username= '$user_login' and password='$pass_login' ";
$result=mysql_db_query ($dbname,$sql);
$num=mysql_num_rows ($result);
mysql_close ();
if ($user_login=="" or $pass_login=="") {
echo "<h3>กรอกข้อมูลไม่ครบ<h3>";
exit();
}
else{
include "connect.php";
$sql="select * from tb_member where username='$user_login' and password='$pass_login'";
$result=mysql_db_query ($dbname,$sql);
$num=mysql_num_rows ($result);
mysql_close ();