On Dec 5, 1:39 pm, "Samuel" <[EMAIL PROTECTED]> wrote:
> hi all:
> in my mode process.php
> there is a function named addProcess($datas)
> and in the body I wrote:
> $sql="INSERT INTO
> processes(pcs_aim_id,pcs_date,pcs_content,pcs_title,pcs_duration,pcs_modified)VALUES(".$datas['selectAim'].",NOW(),'".$datas['pcsContent']."','".$datas['pcsTitle']."','".$datas['pcsDuration']."',NOW())";
> mysql_query('SET   NAMES   gbk;');
> $this->execute($sql);
> $pid=$this->getLastInsertID();
>
> ...
>
> problems is that $pid is empty .why?? thanks !!!

Any reason that isn′t a standard (Process) model save?

Cheers,

AD7six
Please note:
The manual/bakery is a good place to start any quest for info.
The cake search (at the time of writing) erroneously reports less/no
results for the google group.
The wiki may contain incorrect info - read at your own risk (it's
mainly user submitted) :) You may get your answer quicker by asking on
the IRC Channel (you can access it with just a browser
here:http://irc.cakephp.org).


--~--~---------~--~----~------------~-------~--~----~
 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to