BEST HOME INVENTORY MANAGEMENT SOFTWARE FREE AND EASY

First Steps in Programming

The first steps in programming is I wrote everything down. Mainly it was the features above. Additionally, I knew people needed to create and accountlog-in and log-out. I used my codes that I have on this website like I do for all the applications that I program. I started with the basics like I taught about in the intermediate web development course that I have on the website here. There are a lot of files, so let me explain what I did for each of them. These files will work but I added several things onto them. You can do the same thing in your programming.

Header

In the header you see, I started with the php session. We set the time zone to America, New York. It may be beneficial to take that out when people around the world start using the app, I am sure that would frustrate people seeing the wrong time, lol.  I also wanted to see any PHP errors, so I included error reporting. You can slo see that I have a functions file included in the header. Not the next thing that I did was get a session variable called id. This, of course, would be the users id in the database when they login. If they are not logged in, I set their session variable to 0. I then include my CDN scripts and put the time at the top of the page.

<?php if (session_status() === PHP_SESSION_NONE) {
    session_start();
}
date_default_timezone_set('America/New_York');
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
include_once('functions.php');
    if (isset($_SESSION['id'])) {
    $uid=$_SESSION['id'];
    $result = $con->query("SELECT * FROM users WHERE id='$uid' ") ;
    while ($row = $result->fetch_assoc()) {
    $name=strtoupper($row['name']);
    }
    }else{
    $name='';
    $uid='0';
  }

?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home Inventory App</title>
  <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
<div class="well"><?php $date = date('m/d/Y h:i:s a', time()); echo $date; ?></div>

Only cool people share!

BEST HOME INVENTORY MANAGEMENT SOFTWARE FREE AND EASY was last modified: July 27th, 2022 by Maximus Mccullough
BEST HOME INVENTORY MANAGEMENT SOFTWARE FREE AND EASY

Pages:Previous 1 2 3 4 Next

8 Comments

  • Morten Nordby says:

    Hey, very nice app. I can see that your online version is updated a lot since the first version. Is there any chance of getting do download the updated php files for the updates you have done to the inventory app?

  • Hi Maximus, i have been thinking about this app for the last week, and i have several improvements i would like to propose to you for this app. But i would really like to get my hand on the source files for your latest updated version of the app before i can start suggesting new functions and so on. And i would really like to be able to do some testing on my local installation before i send you any suggestions. So as you can see i am waiting to get my local installation upgraded to your latest version to be able to go forward with using and sending you questions about new features and so on 🙂 I hope i may get my hands on the latest source files sooner than later to be able to move forward 🙂 Kind regards, Morten

  • Andrew says:

    I added a category field in the merch table and I believe I have edited all of the relevant files to take that field into consideration. Have you thought about adding a category field to the online application?

  • Andrew says:

    OK, I see…the online application is set up so that you can enter a location or category in the location field. I just entered a separate field for the category so that there is a location and category field. As for the tags, I have to read up some more about them, as I am not sure how they really work.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.