summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorMartin Gummi <martin.gummi@gmx.net>2013-06-26 21:44:05 +0200
committerMartin Gummi <martin.gummi@gmx.net>2013-06-26 21:44:05 +0200
commit413da01559790e19a682e89fb6ce3cb525341302 (patch)
tree7ef27e059485042d8fa005bcb409e5112da3585f /www
parentef6fa684e0c1ac2155036cc2981c65482de92bfc (diff)
downloadcacert-devel-413da01559790e19a682e89fb6ce3cb525341302.tar.gz
cacert-devel-413da01559790e19a682e89fb6ce3cb525341302.tar.xz
cacert-devel-413da01559790e19a682e89fb6ce3cb525341302.zip
bug-1182: PHP Deprecated: Function mysql_list_tables()
Diffstat (limited to 'www')
-rw-r--r--www/sqldump.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/www/sqldump.php b/www/sqldump.php
index 9476f6f..c537f85 100644
--- a/www/sqldump.php
+++ b/www/sqldump.php
@@ -18,21 +18,21 @@
header("content-type: text/plain");
?>
# CAcert SQL Dump
-# version 0.0.2
+# version 0.0.3
#
# Generation Time: <?=date('r')?>
#
# Database: `cacert`
#
<?
- $tables = mysql_list_tables('cacert');
+ $tables = mysql_query("SHOW TABLES");
while(list($table_name) = mysql_fetch_array($tables))
{
echo "# --------------------------------------------------------\n\n";
echo "#\n# Table structure for table `$table_name`\n#\n\n";
echo "DROP TABLE IF EXISTS `$table_name`;\n";
- $create = mysql_fetch_assoc(mysql_query("SHOW CREATE TABLE `cacert`.`$table_name`"));
+ $create = mysql_fetch_assoc(mysql_query("SHOW CREATE TABLE `$table_name`"));
echo $create['Create Table'].";\n\n";
}
?>