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

(feat): made page titles dynamic

This commit is contained in:
2023-11-22 23:49:21 +05:30
parent 13c8422e73
commit 5fe1a3ae5c
6 changed files with 14 additions and 12 deletions

View File

@@ -51,6 +51,16 @@ function fetch_social_icon($conn, $platform_name) {
}
}
//function to fetch page title
function fetch_page_title($conn, $page_name) {
$sql = "SELECT title FROM pages WHERE name = '$page_name'";
$result = $conn -> query($sql);
if($result -> num_rows > 0){
$row = $result -> fetch_assoc();
return $row['title'];
}
}
//---functions to fetch search results starts here---
//from projects table
function fetch_search_results_projects($conn, $keyword) {