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
You can use this to check if there are any results ($result) from a query:
if (mysqli_num_rows($result) != 0) { //results found } else { // results not found }