Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\ffpc\login_check.php on line ของบะะทัดที่ของ $num = mysql_num_rows($result) ;
include "connect.php";
$sql="select * from member where username='$user'";
$result= mysql_db_query($dbname,$sql);
$num = mysql_num_rows($result)or die(mysql_error()); ;
mysql_close();
if($num > 0) {
echo "<h3>ERROR : Username ซ้ำ </h3>"; exit();
}
$sql= "insert into member Value ('','$uer','$pass','$repass','$prefix','$name','$surname','$email','$gender','birth_date','$home_number','Moo','$District','$Province','$Postcode','telephonel','fax')";
$result= mysql_db_query($dbname ,$sql);
include "connect.php";
$sql="select * from member where username='$user'";
$result= mysql_db_query($dbname,$sql);
$num = mysql_num_rows($result)or die(mysql_error()); ;
mysql_close();
if($num > 0) {
echo "<h3>ERROR : Username ซ้ำ </h3>"; exit();
}
$sql= "insert into member Value ('','$uer','$pass','$repass','$prefix','$name','$surname','$email','$gender','birth_date','$home_number','Moo','$District','$Province','$Postcode','telephonel','fax')";
$result= mysql_db_query($dbname ,$sql);
ERROR : กรุณากรอกข้อมูลให้ครบค่ะ ไม่รู้จะแก้ตรงไหนดี
แก้ไม่ถูกแล้วค่ะ ช่วยหน่อยน่ะค่ะ ส่วนอีที่หนึ่ง
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\BanCake\member2.php on line 36
Unknown column 'username' in 'where clause'