From 8b3a8277e1d326cb8a495c30539ee67cbfbc772e Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 13 Jul 2021 22:57:57 +0300 Subject: [PATCH] add findsql --- app/api/apiclient.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api/apiclient.php b/app/api/apiclient.php index 00930d4..28a3961 100644 --- a/app/api/apiclient.php +++ b/app/api/apiclient.php @@ -112,7 +112,9 @@ function client_status_sub($client_id, $client_group = 3){ return True; } - $findsub = db_get("SELECT number_id FROM `anbuy` WHERE `client_id` = '$client_id' AND `number_id` = '486' AND `buy_status` = '1' LIMIT 1"); + $findsql = "SELECT number_id FROM `anbuy` WHERE `client_id` = '$client_id' AND `number_id` = '486' AND `buy_status` = '1' LIMIT 1"; + + $findsub = db_get($findsql); if (isset($findsub['number_id'])){ return True;