// GET ALL ROWS
$get_rows = $sql->query("SELECT expire,date_original,date, FROM table");
$gr = $get_rows->fetch_rows;
然後與結果工作...
$expired = count($gr->expire == 0);
$active = count($gr->expire == 1);
$reposted = count($gr->date_original != date);
或者其他類似的效果呢?
'count'?在你的情況下總會返回1。 – hakre 2012-02-24 20:39:21
上面的代碼是假想的,只是試圖說明我在問什麼。 – DaedBaet 2012-02-24 20:50:15