/var/www/vhosts/m-auto.co/httpdocs/admin
Edit: /var/www/vhosts/m-auto.co/httpdocs/admin/news_form.php (6769B)
prepare("SELECT * FROM news WHERE id = ?");
$stmt->bind_param("i", $id);
$stmt->execute();
$result = $stmt->get_result();
$article = $result->fetch_assoc();
if ($article) {
$title = $article['title'];
$content = $article['content'];
$image = $article['image'];
$video_type = $article['video_type'] ?? 'none';
$video_url = $article['video_url'] ?? '';
$video_file = $article['video_file'] ?? '';
}
}
?>