From b4f640f1c4c75baa579d004937c1fe54bf3e75ce Mon Sep 17 00:00:00 2001 From: JinseoMyeon Date: Wed, 31 Aug 2022 16:29:18 +0900 Subject: [PATCH] chore: delete unused variable --- functions/UrlShortener.php | 1 - 1 file changed, 1 deletion(-) diff --git a/functions/UrlShortener.php b/functions/UrlShortener.php index 9e691d9..e7bca87 100644 --- a/functions/UrlShortener.php +++ b/functions/UrlShortener.php @@ -24,7 +24,6 @@ public function __construct() { public function generateUniqueCode($idOfRow) { //$idOfRow += 10000000; - $conn = mysqli_connect(HOST_NAME, USER_NAME, USER_PASSWORD, DB_NAME); $idOfRow = rand(46656,2147483647); $idOfRow = base_convert($idOfRow, 10, 36); $sql= "SELECT * FROM link where code ='{$idOfRow}'";