Merhaba Arkadaşlar
İlana resimleri yüklerken, resim uzantılarına ilan başlığı ve random sayı nasıl ekliyebilirim, kod yapısı aşağıdaki gibi, bu konuda yardımcı olabilirmisiniz
<?php
$baslik = $_POST["baslik"];
$upload = new upload($_FILES["resim"]);
        if ($upload->uploaded){
            $upload->file_auto_rename = true;
            $upload->image_resize = true;
            $upload->image_ratio_crop = true;
            $upload->image_x = 197;
            $upload->image_y = 43;
            $upload->process("../img");
            if ($upload->processed){
                $ilanresim = "".$upload->file_dst_name."";
            }
        }

if (isset($ilanresim)){
            $resimbul = $db->query("SELECT * FROM gayarlar WHERE id='1'")->fetch(PDO::FETCH_ASSOC);
            unlink("../img".$resimbul["ilan_img"]);
            $guncelle = $db->prepare("UPDATE gayarlar SET ilan_img=? WHERE id=?");
            $guncelle->execute([$ilanresim, 1]);
            $ilanresim = "".$upload->file_dst_name."";
        }
?>