Lines Matching refs:res
144 $res = mysql_query($query);
145 if (!$res) {
149 return $res;
159 $res = mysql_query($query);
160 if ($res && mysql_num_rows($res)) {
161 return mysql_result($res, 0);
235 $res = db_query_safe("SELECT id, name FROM country ORDER BY name");
236 while ($row = mysql_fetch_assoc($res)) {
283 $res = db_query_safe("SELECT note FROM users_note WHERE userid = ? LIMIT 1", [$id]);
284 $row = mysql_fetch_assoc($res);
308 $res = db_query_safe("UPDATE users SET cvsaccess=1, enable=1 WHERE userid=?", [$id]);
309 if ($res && mysql_affected_rows()) {
335 $res = db_query_safe("DELETE FROM users WHERE userid=?", [$id]);
336 if ($res && mysql_affected_rows()) {
440 $res = db_query_safe($query, [$userid, $user, $user]);
441 return $res ? mysql_num_rows($res) : false;
446 $res = db_query_safe(
450 $res = db_query_safe(
455 return mysql_fetch_array($res);
487 $res = db_query_safe("SELECT * FROM phpcal WHERE id = ?", [$id]);
488 return mysql_fetch_array($res,MYSQL_ASSOC);