Login   Register  
PHP Classes
elePHPant
Icontem

File: dbschema.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mac Dude  >  DB Schema  >  dbschema.php  >  Download  
File: dbschema.php
Role: Example script
Content type: text/plain
Description: Example PHP File
Class: DB Schema
Displays MySQL database schema in a tree type view
Author: By
Last change:
Date: 11 years ago
Size: 1,102 bytes
 

Contents

Class file image Download
<?php

    
// includes go here
    
include_once('DBSchema.inc');
    
// require once goes here
    
    // post arguments go here
    
    // passed arguments go here
    
    // page colors go here
    
    // functions go here
    
    // main routine goes here

?>

<html>
    <head>
        <title>Database Schema</title>
    </head>
    
    <body>
        <table width='100%' height='100%' align='center' valign='middle' bgcolor='black' bordercolor='yellow' border='2' cellpadding='0' cellspacing='0'>
            <tr>
                <td>
                    <?php
                        $dbschemaclass
=new DBSchema('localhost','p221','p221');                    // create a new class (also calls the class constructor)
                        
$dbschemaclass->SetImages('database.gif''table.gif''field.gif');    // set the paths to the images to use in the output
                        
$dbschemaclass->SetFontColors('lime','yellow','white');                    // sets the font colors to use
                        
$dbschemaclass->SetFontSize('+2','+1','');                                // set the font size to use
                        
$dbschemaclass->SetCellBackground('black','black','black');
                        
$dbschemaclass->GetSchema();                                            // get the schema now
                    
?>    
                </td>
            </tr>
        </table
    </body>
</html>