function retrieveByPhone() { $phone = htmlentities($_GET['phone'], ENT_QUOTES); $db = dbConnect(); //CUSTOMER TABLE $queryT = "select * from customer where " . "phoneNumber='{$phone}'"; $resultT = $db->Execute($queryT); if (!$resultT) { print "Error DUDE"; return; } $count = $resultT->RowCount(); if ($count == 0) { showOrderForm($phone); } else { retrieveOrder($resultT, $db); } }
retrieveDiscount(); break; case 'retrieveCoupon': retrieveCoupon(); break; case 'createCouponRedemptionCode': createCouponRedemptionCode(); break; case 'removeDiscount': removeDiscount(); break; case 'retrieveActiveSessions': retrieveActiveSessions($subscriberId); break; case 'retrieveOrder': retrieveOrder($orderNumber); break; case 'retrieveOverview': retrieveOverview($swid); break; case 'searchSubscriptionsManagement': searchSubscriptionsManagement($swid); break; case 'toggleOnAutorenewal': toggleOnAutorenewal($subscriptionId); break; case 'emailLogin': emailLogin($email); break; case 'generatePassword': generatePassword($swid);