Lines Matching refs:query
110 private $query = '';
118 die("Incorrect number of parameters to query.");
122 $this->query .= preg_replace_callback('/\?(int)?/', function($matches) use ($params, &$i) {
132 $this->query .= $q->get();
136 return $this->query;
140 function db_query(Query $query)
142 $query = $query->get();
143 //var_dump($query);
144 $res = mysql_query($query);
147 …die(format_warn("Query failed: " . hsc(mysql_error()) . "<tt>\n" . hsc($query) . "</tt><br />({$bt…
152 function db_query_safe($query, array $params = [])
154 return db_query(new Query($query, $params));
157 function db_get_one($query)
159 $res = mysql_query($query);
439 $query = "SELECT userid FROM users WHERE userid = ? AND (email = ? OR username = ?)";
440 $res = db_query_safe($query, [$userid, $user, $user]);