I am trying to run an UPDATE query on my media table, but i don't know why it is not working! My SELECT statement is wokring fine but UPDATE is not! I am using Phalcon Version 1.3.4
Here is my UPDATE statement:
$query = "UPDATE media SET media.mid = 2 WHERE media.name LIKE test";
$this->getModelsManager()->executeQuery($query);
Here is my SELECT statement which works fine:
$query = "SELECT media.mid FROM media WHERE media.name LIKE test";
$result = $this->getModelsManager()->executeQuery($query);
Can someone help me please?