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