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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user