1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-19 23:59:35 +05:30

(fixed): minor formatting issues in core/query_functions

This commit is contained in:
2023-10-31 23:53:26 +05:30
parent 000787ccd4
commit e9eee6b1b0

View File

@@ -1,5 +1,4 @@
<?php
//function to create an array of all unique project years
function create_project_years_array($conn) {
$sql = "SELECT DISTINCT year FROM projects ORDER BY year DESC";
@@ -22,7 +21,7 @@ function fetch_projects_by_year($conn, $year) {
return $result;
}
//function to fetch top 2 featured projects for sidebar
//function to fetch all featured projects
function fetch_featured_projects($conn) {
$sql = "SELECT * FROM featured_projects";
$result = $conn -> query($sql);