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
if you're not using the -> format, you can do this:
->
$a = "SQL command..."; if ($b = mysqli_query($con,$a)) { // results was successful } else { // result was not successful }