first commit

This commit is contained in:
ssbg04 committed 2026-06-05 08:47:11 +08:00
commit 2025f270a8
26 files changed
+1650

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
<?php
require_once __DIR__ . "/../config/db.php";
function getTechStack($mysqli){
$sql = "SELECT tech_name FROM techstack";
$result = $mysqli->query($sql);
$techs = [];
if ($result) {
// Loop through the database rows and push names into the array
while ($row = $result->fetch_assoc()) {
$techs[] = $row['tech_name'];
}
}
return $techs;
}
?>