I have a line of code in which it overrides the result in database. To make it clearer, In database the REMARKS is "Stopped" but in UI"website" it shows running.
This is the code which does the override
'remarks' => ($rowmaxtec['speed'] > 0
and
$rowmaxtec['ENGINE'] == 'ON') ? 'Running' : $rowmaxtec['REMARKS'],
Now what I want is not to override it but to update the REMARKS itself. I have this code which did not do well everything I run it. The site just stops responding, I don't know why, Can anyone help me?
Here's the code I tried to create
'remarks' => ($rowmaxtec['speed'] > 0 and $rowmaxtec['ENGINE'] == 'ON') ?
"UPDATE TBLGPS
SET REMARKS = 'Running'
WHERE SPEED > '0' AND $rowmaxtec['ENGINE'] == 'ON'" : $rowmaxtec['REMARKS'],
I tried to use it but it doesn't run at all. Kindly advice or help. Advance thanks.