loading...

خطا در includ

سوالتو بپرس
سوال شده توسط :
تاریخ : 17:16 1401/06/26
بازدید : 24 بار

سلام ببخشید من هر چه فکر کردم نفهمیدم مشکل این چیه ؟

<?php 
session_start();
include "../database/pdo_connection.php";
include "../database/jdf.php";
if (isset($_POST['sub'])) {
  $title=$_POST['title'];
  $caption=$_POST['caption'];
  $writer=$_POST['writer'];
  $date=jdate("Y/m/d");
  $image=$_POST['image'];
  $result=$conn->prepare("INSERT INTO posts SET title=?, caption=?, writer=?, date=?, image=?");
  $result->bindValue(1,$title);
  $result->bindValue(2,$caption);
  $result->bindValue(3,$writer);
  $result->bindValue(4,$date);
  $result->bindValue(5,$image);
  $result->execute();
}

if (!isset($_SESSION['user'])) {
  header("location:../login.php");
}

?>

خطا:

Warning: include(../database/pdo_connection.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\blog\panel\project\addpost.php on line 3

Warning: include(): Failed opening '../database/pdo_connection.php' for inclusion (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\blog\panel\project\addpost.php on line 3

Warning: include(../database/jdf.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\blog\panel\project\addpost.php on line 4

Warning: include(): Failed opening '../database/jdf.php' for inclusion (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\blog\panel\project\addpost.php on line 4

Fatal error: Uncaught Error: Call to undefined function jdate() in C:\xampp\htdocs\blog\panel\project\addpost.php:9 Stack trace: #0 {main} thrown in C:\xampp\htdocs\blog\panel\project\addpost.php on line 9
PHP
0 پاسخ
برای ثبت پاسخ باید وارد حساب کاربری خود شوید