<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '';
$dbname = 'moviefone';
$con = mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($dbname, $con);
// Check connection
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$data = mysql_query(
"
SELECT *
FROM new_hindi
JOIN new_eng
ORDER
BY id DESC
LIMIT 4
") or die(mysql_error());
$info=array();
while ($row =mysql_fetch_array($data)){
$info[]=$row; }
?>
我的问题是它只循环第一个表中的最后一个数据,而第二个表中它循环最后四个条目。我想要的是第一个表也循环最后四个条目。