This query is not working. I need urgent help. Thanks a lot in adv.
ROWS affected: 0
I have cross checked the data in the table for the given condition.
$sql = 'UPDATE LTE_noria_cellule cel_bk_up SET cel.NAP_'.$site->ur().' = \'1\' '.
'WHERE cel.nidt
IN (
select gn
from LTE_noria_candidat_bk_up can
INNER JOIN LTE_noria_site_bk_up site ON (site.codesite = can.codesite)
WHERE '.$site->get_param('zone_bde').')'; */
I believe problem is because of WHITESPACE.
When i search "codesite" in the table with "LIKE". I can't find it. But when i did "LIKE%" , it's working.
I tried this also but not working :(
$sql = 'UPDATE LTE_noria_cellule cel_bk_up SET cel.NAP_'.$site->ur().' = \'1\' '.
'WHERE cel.nidt
IN (
select gn
from LTE_noria_candidat_bk_up can
INNER JOIN LTE_noria_site_bk_up site ON trim(site.codesite) LIKE CONCAT('%',trim(can.codesite),'%')
WHERE '.$site->get_param('zone_bde').')';