You can do this with the query method of the model. http://book.cakephp.org/view/456/query
It seems like you need to create a dummy table in the database for the controller so that you can access the method: for the following example, I had to create the table "qs" to avoid an "Error: Database table qs for model Q was not found". I didn't need to create a model file though. <?php class QController extends AppController { var $name = 'Q'; function index() { $this->autoRender = false; $this->Q->query("CREATE TABLE customer (First_Name char(50), Last_Name char(50), Address char(50) default 'Unknown', City char(50) default 'Mumbai', Country char(25), Birth_Date date)"); } } ?> On Oct 10, 4:49 am, "gunung pangrango" <[EMAIL PROTECTED]> wrote: > Hello everyone....?? > > i'm newbie in cakephp and now i'm develop web application with cakephp and > mysql... > in my application user can add table or add field table from user > interface...such us phpmyadmin user can define table name , field name , > field type and more... > > and now i want to know how to create that application using cakephp and > mysql... > > thanks for ur help... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---