Hi,
I have this query in scp/save.php:
mysql_query("UPDATE ost_ticket SET pendiente_por = '".$value."' WHERE ticket_id= '2058'");
i want to update the "pendiente_por" field and works but only for the ticket i set in the query.
the problem here is: how can i put a variable for ticket_id like $this->getId() or $ticket->getExtId() or db_input($this->getId())?
if i make this i have this errors:
in $ticket->getExtId()
Fatal error: Call to a member function getExtId() on a non-object
in db_input($this->getId())?
Fatal error: Using $this when not in object context in
Help!