PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Marcus Brasizza   Bean Creator   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example of how to use
Class: Bean Creator
Generate classes to access MySQL database tables
Author: By
Last change:
Date: 12 years ago
Size: 280 bytes
 

Contents

Class file image Download
<?php
 
include_once('incs/generate.class.php');
 
$creator = new BeanCreator('127.0.0.1','root','noP4ss','','mysql');
 
$creator->selectTables(); // here you can put ('mytable') or (array('mytable','mytable2'))
 
$creator->save()->toZip(); // save and compress to ZIP file
?>