Changed some queries to use MYSQLI_STORE_RESULT.

phpMyAdmin now works with MYSQLI_USE_RESULT as default.
This commit is contained in:
Marcel Tschopp
2004-04-10 16:19:21 +00:00
parent b2e3128634
commit 4e62f7658f
22 changed files with 42 additions and 32 deletions

View File

@@ -1175,7 +1175,7 @@ if (empty($adduser) && empty($checkprivs)) {
} else {
echo ' <input type="hidden" name="dbname" value="' . htmlspecialchars($dbname) . '"/>' . "\n"
. ' <label for="text_tablename">' . $strAddPrivilegesOnTbl . ':</label>' . "\n";
if ($res = PMA_DBI_try_query('SHOW TABLES FROM ' . PMA_backquote($dbname) . ';')) {
if ($res = PMA_DBI_try_query('SHOW TABLES FROM ' . PMA_backquote($dbname) . ';', NULL, PMA_DBI_QUERY_STORE)) {
$pred_tbl_array = array();
while ($row = PMA_DBI_fetch_row($res)) {
if (!isset($found_rows) || !in_array($row[0], $found_rows)) {