Lines Matching refs:query
87 …$query = new Query('SELECT SUM(votes.vote) AS up, (COUNT(votes.vote) - SUM(votes.vote)) AS down, n… variable
93 $query->add('note.id = ?', [$_REQUEST['keyword']]);
97 …$query->add("note.sect LIKE ? GROUP BY note.id ORDER BY note.sect, note.ts LIMIT ?int, 10", [$sect…
100 $query->add(
104 $result = db_query_safe($query->get());
456 $query = new Query('UPDATE note SET sect = ? WHERE ', [$_REQUEST["new_sect"]]); variable
457 $query->addQuery($where);
458 db_query($query);
462 $query = new Query('SELECT COUNT(*) FROM note WHERE '); variable
463 $query->addQuery($where);
464 $result = db_query($query);
770 foreach ($stats_sql as $key => $query) {
771 $result = db_query($query);