connect_error) { die("Database connection failed: " . $conn->connect_error); } if (!($stmt = $conn->prepare($article_query))) { echo "Prepare failed: (" . $mysqli->errno . ") " . $mysqli->error; } $stmt->bind_param("s", $slug); $stmt->execute(); $article = $stmt->get_result()->fetch_assoc(); $stmt = $conn->prepare($keyword_query); $stmt->bind_param("i", $article['keywords']); $stmt->execute(); $keywords = $stmt->get_result()->fetch_assoc(); $conn->close(); $article_content_file_location = "/var/www/html/articles/" + $slug; $article_content_file = fopen($article_content_file_location, "r") or die ("404 File not found!"); $article_content = fread($article_content_file, filesize($article_content_file_location)); fclose($article_content_file); ?> <?php echo $article['title'] ?> - Lijero