Joomla DB query UPDATE always return true... - Joomla! Forum - community, help and support


hi guys !

i'm making little sql code update db entrie :

code: select all

$db =& jfactory::getdbo();
$query = $db->getquery(true);
$query = "update #__mytable set content =". $db->quote(json_encode($answers))." id=".$result_id;
$db->setquery($query);
$result = $db->query();


it return true if result_id var doesn't exist... how should sure query realy works , realy update ?

thanks lot !

where did values $result_id , $answers ?
this useful know.





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support