| admin_login.php | index.php | plugins_footer.php | plugins_header.php | qt_viewquests.php | qt_viewtimers.php | quest_timer.php | quest_timer/loadquests.php | quest_timer/newquests.php | quest_timer/savequests.php | quest_timer/submitquests.php | scroll_manager.php | show_create.php | sql_config_example.php | viewsource.php |

show_create.php

  [Go to page]


<?php
    
require_once('sql_config.php');
    if (!
defined('MYSQL_CONNECTED')) die('Failed to connect to database!');
    
    
$tables = array(
        
"QuestTimer_UserQuests",
        
"QuestTimer_Admins",
        
"QuestTimer_AvailableQuests",
        
"QuestTimer_DeletedQuests",
        
"Decal_DownloadCounts"
    
);
    
    echo(
'<pre>');
    
    foreach (
$tables as $table)
    {
        
$result mysql_query("SHOW CREATE TABLE $table");
        if (
$data mysql_fetch_array($result))
        {
            echo 
"<h1>$table</h1>"$data['Create Table'], "<br><br><hr>";
        }
    }
    
    echo(
'</pre>');
?>