0
如果可能,我需要組合這兩個查詢,或者使它們一個接一個地進行處理。我假設$Record_Count = $Record_Count + 1;
不需要在那裏兩次,因爲這只是分頁腳本。 (在此先感謝)結合兩個While&sql語句
$results = mysql_query("SELECT * load_test WHERE language = '".$lang."' ORDER BY Id DESC, creationdate DESC LIMIT $start, 5");
while ($data = mysql_fetch_array($results)) {
$Record_Count = $Record_Count + 1;
$rec_res = mysql_query("SELECT * FROM names WHERE com_id = '".$data[Id]."'");
while ($recdata = mysql_fetch_array($rec_res)) {
$Record_Count = $Record_Count + 1;
需要是SELECT返回的行數*從load_test代替SELECT * load_test – 2010-12-02 13:39:55