最近寫一個用戶背單字的程式碼,為每個用戶分配單字列表,在分頁時出了點問題,主要是$datas[]這段程式碼有問題,還請指點一二
#if(isset($_SESSION["username"]))
$name=$_SESSION["username"];
$results=mysql_query("select * from study_progress where nickname='$namename ' and status='0' limit {$start},{$pageSize}");
while ($rows= mysql_fetch_array($results)){
$datas[]=array("enword"=array("enword"=)> ;$rows['word']);
$word=$rows['word'];
$result = mysql_query("select * from words group by enword where ensql_query("select * from words group by enword where ensql=word en");
$row=mysql_fetch_array($result);
$datas[]=array( "chword" => $row['chword'], "uk" => $row['uk'], $row['uk'] "uk_m" => $row['uk_m'], "us" => $row['us'], "us_m" => $row['us_m'], "p_content" => $row ['p_content'], "p_meaning" => $row['p_meaning'], "content" => $row['content'], "meaning" => $row['meaning'], "count " => $count);
}
echo json_encode($datas);
不然就是json傳遞了兩個陣列參數,success該怎麼接收並使用這兩個陣列資料?