<?php
require_once("database.php");
require_once("models/articles.php");
$articles = articles_all();
include("views/articles.php");
?>
Запустил скрипт через веб сервер апач и получил в браузере вот такую ошибку , что делать ?
<?php
require_once("database.php");
require_once("models/articles.php");
$articles = articles_all();
include("views/articles.php");
?>
Цитата (Zinger @ 4.09.2016 - 15:07) |
что делать ? |
Цитата (Zinger @ 4.09.2016 - 15:22) |
я искал ошибку, но не смог ее исправить , на мой взгляд . там все верно |
<?php
functions articles_all() {
$art1 = ["id" => 1, "title" => "Titel", "date" => "2016-06-13", "content" => "Contenl"];
$art2 = ["id" => 2, "title" => "Tite2", "date" => "2016-07-13", "content" => "Conten2"];
$arr[0] = $art1;
$arr[1] = $art2;
return $arr;
}
functions articles_get($id) {
}
functions articles_new($title, $date, $content) {
}
functions articles_edit($id, $title, $date, $content) {
}
functions articles_delete($id) {
}
?>
Цитата (Zinger @ 4.09.2016 - 15:39) |
$art1 = ["id" => 1, "title" => "Titel", "date" => "2016-06-13", "content" => "Contenl"]; |
$art1 = array("id" => 1, "title" => "Titel", "date" => "2016-06-13", "content" => "Contenl");