現在中使用「其中一個資料,而「如何回復符合條件的所有資料?
if(!defined('SC')){exit('Access Denied');}
$db = functions::db();
$uid = SC('post/uid');
$wid = $db->query('pinglun','',"user='{ $uid}'");
if($wid){
$array = array(
'ret'=>true,
'id'=>$wid[0]['id'],
'zan'=>$wid[0]['zan']
);
}else{
# $array = array(
#}else{# $array = array(#}else{
# $array = array(
#### 'ret'=>false##### 'ret'=>false##### ); ######}######echo json_encode($array);#########