Lines Matching refs:result
104 $result = db_query_safe($query->get()); variable
110 …$result = db_query_safe("SELECT SUM(votes.vote) AS up, (COUNT(votes.vote) - SUM(votes.vote)) AS do… variable
117 …$result = db_query_safe("SELECT SUM(votes.vote) AS up, (COUNT(votes.vote) - SUM(votes.vote)) AS do… variable
124 …$result = db_query_safe("SELECT SUM(votes.vote) AS up, (COUNT(votes.vote) - SUM(votes.vote)) AS do… variable
134 …$result = db_query_safe("SELECT SUM(votes.vote) AS up, (COUNT(votes.vote) - SUM(votes.vote)) AS do… variable
154 $result = db_query_safe( variable
167 $result = db_query_safe( variable
179 $result = db_query_safe( variable
191 $result = db_query_safe( variable
200 $result = db_query_safe( variable
208 $result = db_query_safe( variable
216 if ($result) {
267 while ($row = mysql_fetch_assoc($result)) {
272 if (mysql_num_rows($result) == 1 && !array_filter($row)) {
464 $result = db_query($query); variable
465 if (!($count = mysql_result($result, 0, 0))) {
651 $result = db_query_safe("SELECT COUNT(id) AS id FROM votes WHERE note_id = ?", [$id]); variable
652 $rows = mysql_fetch_assoc($result);
672 $result = db_query_safe($sql, [$id]); variable
673 if (mysql_num_rows($result)) {
674 $row = mysql_fetch_assoc($result);
771 $result = db_query($query); variable
772 $row = mysql_fetch_assoc($result);
877 if ($result = db_query_safe('SELECT *, UNIX_TIMESTAMP(ts) AS ts FROM note WHERE id=?', [$id])) {
878 if (!mysql_num_rows($result)) {
881 return mysql_fetch_assoc($result);