diff --git a/add_review.php b/add_review.php index b89e01cd91812bad0b3e9693582b55090133298f..8a350f876cddd7f3d7c4cb663a61b5a08bb83f5e 100644 --- a/add_review.php +++ b/add_review.php @@ -78,6 +78,13 @@ if(isset($_POST['submit'])){ <script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.2/sweetalert.min.js"></script> <script src="js/script.js"></script> -<?php include 'components/alerts.php'; ?> +<?php +$file_path = __DIR__ . '/components/alerts.php'; +if (file_exists($file_path)) { + include $file_path; +} else { + echo "<p style='color:red;'>Warning: alerts.php not found!</p>"; +} +?> </body> </html> \ No newline at end of file