Skip to content
Advertisement

stop updating column value when status is settled for similar lead id using PHP, MYSQL [closed]

i have a following mysql table, where multiple user has accepted a lead (lead_id). here i want to stop updating table column ‘Value’ when ‘status’ is ‘settled

JavaScript

enter image description here

Advertisement

Answer

Get the count of rows with status = 'settled'. If it’s more than 0, don’t allow accepting the lead.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement