Parse error: syntax error, unexpected '[' in /include/functions.php on line 13
function get_post()
{
global $link;
$sql = "SELECT * FROM projects WHERE categoty = 'top' ORDER BY id desc";
$result = mysqli_query($link, $sql);
$posts = [];
while ($row = $result->fetch_assoc()) {
$posts[] = $row;
}
return $posts;
}
$posts = [];
- line 13 function get_post() {
global $link;
$sql = "SELECT * FROM projects WHERE categoty = 'top' ORDER BY id desc";
$result = mysqli_query($link, $sql);
$posts = mysqli_fetch_all($result, MYSQLI_ASSOC);
return $posts;
}
function get_post() {
global $link;
$sql = "SELECT * FROM projects";
$result = mysqli_query($link, $sql);
while ($posts = $result->fetch_assoc()) {
}
return $posts;
}
background-image: url(../img/first_bg.svg);
background-image: url(../img/first_bg.svg), linear-gradient(180deg, #FFFFFF, #F8F7FD);
background-size: cover;
opacity: 1;
position: relative;
background-image: url(../img/first_bg.svg);
background-image: url(../img/first_bg.svg), linear-gradient(#FFFFFF, #F8F7FD);