Skip to content

Commit

Permalink
chore: delete unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
JinseoMyeon committed Aug 31, 2022
1 parent 1f38799 commit b4f640f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion functions/UrlShortener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}'";
Expand Down

0 comments on commit b4f640f

Please sign in to comment.