echo explode('/', $url,2)[1];
+$(".form-submit").on("click", ".product__add", function () {
-$(".product__add").on("click", function () {
sudo ufw allow 21/tcp
sudo ufw allow 10000:10100/tcp
sudo systemctl status vsftpd
$folder = addslashes("\\assets\\img\\product\\");
$stmt = $mysql->prepare("INSERT INTO `catalog`(`Name_Product`, `Operator`, `Internet`, `Minuts`, `Sms`, `Price_tarif`, `Price_sim`, `image`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)");
$stmt->bind_param("ssssssss", $Name_Product, $Operator, $Internet, $Minuts, $Sms, $Price_tarif, $Price_sim, $photoname);
$stmt->execute();
$token = htmlspecialchars(isset($_POST['token']));
$message = htmlspecialchars(isset($_POST['message']));
$subtopic_id = intval(isset($_POST['subtopic_id']));
<?php
$token = htmlspecialchars($_POST['token'] ?? '');
$message = htmlspecialchars($_POST['message'] ?? '');
$subtopic_id = intval($_POST['subtopic_id'] ?? 0);