View Single Post
  #6  
Old 2nd September 2010, 14:41
bruno_floyd bruno_floyd is offline
Member
 
Join Date: Aug 2010
Posts: 73
Thanks: 1
Thanked 2 Times in 2 Posts
Default

Thanks till!

It worked!

I have another question if you allow me...

I'm trying to get a valeu from the DB, doing this:

$sql = $app->db->query("SELECT groupid FROM sys_group WHERE client_id = ".$this->dataRecord['indicou_id']);

$group = $app->db->queryOneRecord($sql);

And then update "sys_groupid" from my table "indicacao":

$app->db->query("UPDATE indicacao SET sys_groupid = ".$group." WHERE indicacao_id = ".$this->id);

These lines are in the function onAfterInsert()... and when I execute another stuff from my code in that section they are executed, but not the update above. Could you help?

Thanks again!

Last edited by bruno_floyd; 2nd September 2010 at 14:47.
Reply With Quote