PMA_DBI_num_rows

This commit is contained in:
Marc Delisle
2004-01-20 18:17:13 +00:00
parent 749f928298
commit 0c31d7c7a8
2 changed files with 6 additions and 1 deletions

View File

@@ -193,4 +193,9 @@ function PMA_DBI_get_dblist($link = '') {
unset($res);
return $dbs_array;
}
function PMA_DBI_num_rows($result) {
return mysql_num_rows($result);
}
?>

View File

@@ -39,7 +39,7 @@ if (isset($db) && isset($table) && $table != '' && $db != '') {
PMA_mysqlDie('', $local_query, '', $err_url);
}
else {
$fields_cnt = mysql_num_rows($result);
$fields_cnt = PMA_DBI_num_rows($result);
while ($row = PMA_mysql_fetch_array($result)) {
$fields_list[] = $row['Field'];
} // end while