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 ($DB->rowCount() > 0) {/* Update worked because query affected X amount of rows. */} else {$error = $DB->errorInfo();}