code & tutorials / php classes / class generator home contact sitemap search print view add to favourites recommend site guestbook deutsch/german  

« nothing compares to the simple pleasure of a bike ride. »
(john f. kennedy)

 

 

php mysql class generator

with this class you can automatically generate data access abstraction classes in php for mysql tables. you only select the mysql table, choose a class name and press button "generate class". "settter" and "getter" methods are automatically defined for each attribute! you have methods for inserting, deleting, updating and selecting from database table! if the table structure has changed, only press "generate class" again! that makes application developing with php and mysql databases very easy. i have used this for my project swissroute.com.


  1. <?php
  2.  
  3. // SAMPLE FOR METHOD SELECT()
  4. include_once("../generated_classes/class.test.php");
  5.  
  6. $test = new test();
  7.  
  8. $test->select(12);
  9.  
  10. $v = $test->getvorname();
  11.  
  12. print "$v";
  13.  
  14. $test->setvorname("alpha");
  15.  
  16. $v = $test->getvorname();
  17.  
  18. print "$v";
  19.  
  20. print "selected record $test->id";
  21.  
  22. ?>
 

PHPClasses.org view this package on phpclasses.org

 
     
  © by marco voegeli, switzerland       696232 visitors total / © & disclaimer up