X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=db.php;h=4a58db863a280bcfc9ffe1edd852b34586527360;hb=27f182546d729a9d297091799fcf1a1922da0c5e;hp=cd68d8d0939f5dd0af7df248a22b01fc23fe0b89;hpb=9f4dd08b3d81e9200d8486655df7cd2fc7cf307a;p=wfpl.git diff --git a/db.php b/db.php index cd68d8d..4a58db8 100644 --- a/db.php +++ b/db.php @@ -151,13 +151,13 @@ function db_send_get($table, $columns, $where, $args) { } -function db_get_rows($table, $columns, $where = '', $type = MYSQL_NUM) { +function db_get_rows($table, $columns, $where = '') { $args = func_get_args(); $args = array_slice($args, 3); $result = db_send_get($table, $columns, $where, $args); $rows = array(); - while($row = mysql_fetch_array($result, $type)) { + while($row = mysql_fetch_row($result)) { $rows[] = $row; } @@ -181,12 +181,12 @@ function db_get_column($table, $columns, $where = '') { return $column; } -function db_get_row($table, $columns, $where = '', $type = MYSQL_NUM) { +function db_get_row($table, $columns, $where = '') { $args = func_get_args(); $args = array_slice($args, 3); $result = db_send_get($table, $columns, $where, $args); - $row = mysql_fetch_array($result, $type); + $row = mysql_fetch_row($result); mysql_free_result($result);