function findOrCreateClub($clubName) { $rsClub = $this->cnDB->query("select id from tblClub where name = '" . $this->cnDB->escapeString($clubName) . "'"); if ($clubId = $this->fetch_array($rsClub)) { return $clubId['id']; } else { return newClub($clubName); } }
function findOrCreateClub($clubName) { $rsClub = sqlite_unbuffered_query($this->cnDB, "select id from tblClub where name = '" . sqlite_escape_string($clubName) . "'"); if ($clubId = $this->fetch_array($rsClub)) { return $clubId['id']; } else { return newClub($clubName); } }