hi alberto

you should be able to do any query to your DB with the Model::query()
method, and the beforeSave or afterSave callback methods
in Evaluation.php, you will have something like :

function afterSave(){
   $this->query("CREATE TABLE
`evaluation_".$this->data['Evaluation']['id']" blah blah");

}

+++++++
clement

On 6/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I need to execute some SQL code like "CREATE TABLE..." when I add a new
> record in another table; let's explain: from a form I add a new
> evaluation (I have the model, the controller and the views for this
> one); when I add some data to the 'evaluation table', I need to execute
> some SQL code to create another table with some data from that form
> inside it. How can I do this?
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to