summaryrefslogtreecommitdiff
path: root/includes/database.mysql.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/database.mysql.inc')
-rw-r--r--includes/database.mysql.inc11
1 files changed, 8 insertions, 3 deletions
diff --git a/includes/database.mysql.inc b/includes/database.mysql.inc
index 7b5dabb84..2f27a7a5e 100644
--- a/includes/database.mysql.inc
+++ b/includes/database.mysql.inc
@@ -21,6 +21,12 @@ function db_connect($url) {
*/
}
+/**
+ * Runs a query in the database.
+ *
+ * @param $query SQL query, followed by a variable number of arguments which are substituted into query by sprintf.
+ * @return a MySQL result or FALSE if the query was not executed correctly.
+ */
function db_query($query) {
$args = func_get_args();
@@ -142,9 +148,8 @@ function db_affected_rows() {
/**
* Runs a LIMIT query in the database.
*
- * @param mixed $query SQL query, followed by a variable number of arguments which are substituted into query by sprintf, followed by 'from' and 'count' parameters. 'from' is the row to start fetching, 'count' the numbers of rows to fetch.
- * @return resource a MySQL result or FALSE if the query was not executed correctly.
- * @access public
+ * @param $query SQL query, followed by a variable number of arguments which are substituted into query by sprintf, followed by 'from' and 'count' parameters. 'from' is the row to start fetching, 'count' the numbers of rows to fetch.
+ * @return a MySQL result or FALSE if the query was not executed correctly.
*/
function db_query_range($query) {
$args = func_get_args();