Model -Zend framework query executing
--------------------------------------------
function getpostionlist($teamid){
$odb = Zend_Db_Table::getDefaultAdapter();
$stmt = $odb->query("select plps_abbr,plps_sprt_id,plps_position_name from plg_player_position where plps_sprt_id=$teamid and plps_status=1");
$rs = $stmt->fetchAll();
$stmt->closeCursor();
return $rs;
}
No comments:
Post a Comment