make dynamic url when upload a same name pdf file and show as a versions

I’m uploading files from admin panel, i have a input with link name and one with pdf name

if (empty($_FILES['timetable_pdf']['name'])) {
        $timetable_pdf = $_POST['old_timetable_pdf'];
    }else{
    $link = $_POST['link'];
    $file_name = $_FILES['timetable_pdf']['name'];
    $folderName = "../" . strtolower(preg_replace("/[^a-zA-Z0-9]/", "", $link)) . "en";
    if (!file_exists($folderName)) {
      mkdir($folderName);
    }
    $pdfFile = $_FILES['timetable_pdf']['name'];
    $pdfPath =  $folderName . '/' . $pdfFile;
   $timetable_pdf =  basename($file_name);
    move_uploaded_file($_FILES['timetable_pdf']['tmp_name'], $pdfPath);
   
  }

and the home page url like this

<a href="<?php if(!empty($row['timetable_pdf'])){echo $row['link'] . 'en/' . $row['timetable_pdf'];} ?>" target="_blank" >Download <?= $row['e_title'] ?> Timetable</a>

and preview is
https://hostname/icms23en/pdf_name.php

i want when i update the pdf file with the same name then its show the latest url with version like this

https://hostname/icms23en/pdf_name.php?v=1,
https://hostname/icms23en/pdf_name.php?v=2,
https://hostname/icms23en/pdf_name.php?v=3

whenver i update the pdf then it’s show the url like this and i als want to see others files to change ther url with write a diffrent version