Thank you all for your help. Enoughdb_query("UPDATE ost_mytable SET flag='1' WHERE ticket_id=".$ticket->getId());and$response=$ticket->postReply($vars, $errors, $_POST);...I'm a member of the ubuntu forum This forum seems a bit different. thanks anyway