Location: PHPKode > scripts > sql2dia > sql2dia/example.php
<?

	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');

?>
Return current item: sql2dia