Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Daniel Afonso Heisler  >  sql2dia  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example file
Class: sql2dia
This class creates a diagram from your sql file.
Author: By
Last change:
Date: 12 years ago
Size: 467 bytes
 

Contents

Class file image Download
<?

    
require_once("sql2dia.class");

    
$array = array(
                        
"table1"    =>    array(    "id"            =>    "int",
                                                
"text"            =>    "varchar(240)",
                                                
"description"    =>    "text"
                                            
),
                        
"table2"    =>    array(    "id"            =>    "int",
                                                
"date"            =>    "date",
                                                
"visible"        =>    "bool",
                                                
"value"            =>    "float",
                                                
"obs"            =>    "text"
                                            
)
                    );

    
$object = new sql2dia;
    
$object->Generate($array'file.dia');

?>