I have three fields in the table as follows:
| event_id | email | count |
Now, I have to increment the values in the count field whenever event_id is found same. The increment has to be done based on the previous count value at the same event_id.
`$sql=$con->query("INSERT INTO usersregisteredevents (event_id,email) VALUES ('$event_id','$email')");`
Please help with this.