Hi,
I have this problem:
My custom code is
and it work right.
But if I add this
it don't work.
Everyone can help me?
Thanks
I have this problem:
My custom code is
$db =& JFactory::getDBO();
$query = "UPDATE `MY_TABLE` SET `MY_FIELD` = 'Si' WHERE `MY_TABLE`.`FIELD` = '$VAR'";
$db->setQuery($query);
$db->query();
and it work right.
But if I add this
if(mysql_affected_rows() => 1)
{
echo 'OK';
}
else
{
echo 'NO!';
}
it don't work.
Everyone can help me?
Thanks