prepare($query); $stmt->bind_param("i", $maestroID); $stmt->execute(); $stmt->bind_result($countUpgrade); // while($stmt->fetch()) $stmt->fetch(); $stmt->close(); return $countUpgrade; } function add_maestro_update($maestroID, $registeredAcountType, $newAccountType) { global $db_conn; $query = " INSERT INTO moty_maestro_upgrade (RegisteredAccountType, RequestedAccountType, RequestedDateTime, Status, MaestroID) VALUES (?, ?, NOW(), 1, ?); "; $stmt = $db_conn->prepare($query); $stmt->bind_param("iii", $registeredAcountType, $newAccountType, $maestroID); $stmt->execute(); } ?>