Files
inventory-website/index.php
T
2020-03-30 22:03:06 -05:00

31 lines
495 B
PHP
Executable File

<?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>