Initial commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
include_once "db/db.php";
|
||||
include_once "db/category.php";
|
||||
|
||||
$categories = get_category_items($db);
|
||||
|
||||
if($categories){
|
||||
if($categories->num_rows == 0){
|
||||
header("Location: create_category.php");
|
||||
exit(); //It's good practice to call exit() after a redirect so nothing else gets executed.
|
||||
}
|
||||
while($row = mysqli_fetch_array($categories))
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
else{
|
||||
echo "Error";
|
||||
}
|
||||
|
||||
$db->close();
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user