prepare($query); $stmt->bind_param("i", $maestro_id); $stmt->execute(); $stmt->bind_result($countUpgrade); // while($stmt->fetch()) $stmt->fetch(); $stmt->close(); return $countUpgrade; } function add_maestro_extension($maestro_id, $account_type) { global $db_conn; $query = " INSERT INTO maestro_extension (AccountType, RequestedDateTime, Status, MaestroID) VALUES (?, NOW(), 1, ?); "; $stmt = $db_conn->prepare($query); $stmt->bind_param("ii", $account_type, $maestro_id); $stmt->execute(); } ?>