public static function QuerySingle($playerName, $id) { if (empty($playerName)) { $this->result = FALSE; return FALSE; } $class = new QueryItems(); $class->doQuery("LOWER(`playerName`) = '" . mysql_san(strtolower($playerName)) . "' AND `id` = " . (int) $id); if (!$class->result) { return FALSE; } return $class->getNext(); }
public static function QuerySingle($playerId, $id) { if (empty($playerId)) { $this->result = FALSE; return FALSE; } $class = new QueryItems(); $class->doQuery("`playerId` = '" . mysql_san($playerId) . "' AND `id` = " . (int) $id); if (!$class->result) { return FALSE; } return $class->getNext(); }