0
public function get_Gol($idComp, $idSq){
global $wpdb;
$row = $wpdb->get_results($wpdb->prepare("SELECT count(F_id_gioc_Gol) FROM `ASD_Partite` p
LEFT JOIN ASD_CALCIO_Partite_Gol cpg ON p.id = cpg.F_id_dett_partita
WHERE p.F_id_comp = %d AND (p.F_id_sq1 = %d OR p.F_id_sq2 = %d) AND F_id_gioc_Gol = %d", $idComp, $idSq, $idSq, $this->idGioc));
foreach ($row as $key => $v){
return $v->count(F_id_gioc_Gol);
}
問題是,$v->count(F_id_gioc_Gol);
不起作用。我如何訪問它?獲取對象與廣場的成員
謝謝..它工作忘記我可以重命名列:) – Atomico 2013-04-08 11:05:29