PHP Classes

File: dbschema.php

Recommend this page to a friend!
  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: 14 years ago
Size: 1,102 bytes


Class file image Download

// includes go here
// require once goes here
    // post arguments go here
    // passed arguments go here
    // page colors go here
    // functions go here
    // main routine goes here


        <title>Database Schema</title>
        <table width='100%' height='100%' align='center' valign='middle' bgcolor='black' bordercolor='yellow' border='2' cellpadding='0' cellspacing='0'>
=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->GetSchema(); // get the schema now