first commit
This commit is contained in:
commit
2025f270a8
26 files changed
+1650
No files matched your search
@@ -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;
|
||||
}
|
||||
?>
|
||||
Reference in new issue
Block a user