I have this query and if it returns successful, I want another function to process, if not, do not process that function.
Here is the code for running the query
mysqli_affected_rows returns number of items affected.
mysqli_affected_rows