}
-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;
}
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);