![]() |
Hello,
I have a basic model with no configuration else of allowed fields. I want to update a row need and know if the update was done or not and can not figure it out. How can I get the number of affected lines for this update? I don't want to break CI4 by running the command as MySQL plain. should be zero if not matched. This is to ensure the job ist not run twice at the same time. thanks Stefan PHP Code: //search first jobs with status is idle Hello, short: the sql command itself works fine. But i prefere to use CI4 for this. PHP Code: $SQLString = "UPDATE job SET status=" . JOB_STATUS_STARTED . " WHERE ((id=" . $JobFound['id'] . ") AND (status=5))"; |
Messages In This Thread |
how to check if update on model did succeed? - by StefanKittel - 05-21-2023, 04:15 PM
RE: how to check if update on model did succeed? - by InsiteFX - 05-22-2023, 12:12 AM
RE: how to check if update on model did succeed? - by StefanKittel - 05-22-2023, 12:51 AM
RE: how to check if update on model did succeed? - by kenjis - 05-22-2023, 12:55 AM
RE: how to check if update on model did succeed? - by StefanKittel - 05-23-2023, 07:59 AM
RE: how to check if update on model did succeed? - by kenjis - 05-23-2023, 03:46 PM
RE: how to check if update on model did succeed? - by mhmmd - 10-26-2024, 10:33 AM
RE: how to check if update on model did succeed? - by StefanKittel - 06-06-2023, 06:58 AM
|