mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-20 01:09:35 +05:30
(fixed): minor formatting issues in core/query_functions
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user