ผมลองดูแล้วมันขึ้นแบบนี้ครับ Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\photo\select1.php on line 6
Date :
2012-07-04 22:23:36
By :
วัส
No. 10
Guest
ถ้าแบบนี้จะได้ป่าวนะ ลองดู Code (PHP)
$sql="SELECT gallery.Picture,gallery_ans.Name,gallery_ans.Message ,gallery_ans.Date_added INNER JOIN gallery ON gallery.id=gallery_ans.id";
$qr=mysql_query($sql) or die (mysql_error());
while($res = mysql_fetch_array($qr)){
echo $res['Picture'],$res['Name'],$res['Message'],$res['Date_added'];
}