/var/www/vhosts/m-auto.co/httpdocs/admin
Edit: /var/www/vhosts/m-auto.co/httpdocs/admin/video_process.php (3336B)
prepare($sql);
$stmt->bind_param("ssssssi", $title, $description, $video_url, $video_file_name, $thumbnail_name, $video_type, $active);
} else {
// UPDATE
$sql = "UPDATE videos SET title=?, description=?, video_url=?, video_file=?, thumbnail=?, video_type=?, active=? WHERE id=?";
$stmt = $conn->prepare($sql);
$stmt->bind_param("ssssssii", $title, $description, $video_url, $video_file_name, $thumbnail_name, $video_type, $active, $id);
}
if ($stmt->execute()) {
header("Location: videos.php?success=تم حفظ الفيديو بنجاح");
} else {
header("Location: videos.php?error=حدث خطأ: " . $stmt->error);
}
$stmt->close();
$conn->close();
} else {
header("Location: videos.php");
exit();
}
?>