Skip to content

Instantly share code, notes, and snippets.

View code-boxx's full-sized avatar
🏠
Working from home

Code Boxx code-boxx

🏠
Working from home
View GitHub Profile
@code-boxx
code-boxx / 0-PHP-SUPPORT.MD
Last active March 10, 2025 12:05
PHP MYSQL Support Ticket System

PHP MYSQL SUPPORT TICKET SYSTEM

https://code-boxx.com/support-ticket-system-php/

NOTES

  1. Create a test database and import 1-database.sql.
  2. Edit 2-lib-ticket.php, change the database settings to your own.
  3. Access 3a-ticket.html in the browser. Captain Obvious, use http://, not file://.

LICENSE

Copyright by Code Boxx

@code-boxx
code-boxx / 0-PY-INVENTORY.MD
Last active February 22, 2025 14:55
Python Flask Inventory System

PYTHON FLASK INVENTORY SYSTEM

https://code-boxx.com/inventory-management-python-flask/

NOTES

  1. Run unpack.bat (Windows) unpack.sh (Linux/Mac). This will automatically:
    • Create a templates folder, move S4A_main.html inside.
    • Create a static folder, move S4B_main.js and S4C_main.css inside.
    • Create a virtual environment - virtualenv venv.
    • Activate the virtual environment - venv\scripts\activate (Windows) venv/bin/activate (Mac/Linux)
  • Install Flask - pip install flask
@code-boxx
code-boxx / 0-PHP-GUESTBOOK.MD
Last active February 16, 2025 16:52
PHP MYSQL Guestbook

PHP MYSQL GUESTBOOK

https://code-boxx.com/simple-php-guest-book/

IMAGES

talk

NOTES

  1. Create a database and import 1-database.sql.
  2. Change the database settings in 2-lib.php to your own.
  3. That's all, launch 3-page.php in your browser.
@code-boxx
code-boxx / 0-PHP-GPS-TRACK.MD
Last active February 1, 2025 05:22
PHP MYSQL GPS Tracking

PHP MYSQL GPS TRACKING SYSTEM

https://code-boxx.com/gps-tracking-system-php-javascript/

NOTES

  1. Create a database and import 1-database.sql.
  2. Change the database settings in 2-lib-track.php to your own.
  3. Access 4a-track.html for the client/rider tracking page, and 4b-admin.html for the demo admin page.
  4. Take extra note that GPS geolocation requires https:// to work properly. http://localhost is an exception for testing.

LICENSE

@code-boxx
code-boxx / 0-PHP-LOGIN-NO-DB.MD
Last active January 22, 2025 14:26
PHP User Login Without Database

PHP USER LOGIN WITHOUT DATABASE

https://code-boxx.com/simple-php-login-without-database/

NOTES

  1. Set your own users and passwords in $users of 2-check.php, also where to redirect on successful login.
  2. Protect all your pages by including 3-protect.php at the top.
  3. Launch 1-login.php in the web browser, that's all.

LICENSE

Copyright by Code Boxx

@code-boxx
code-boxx / 0-JS-DATEPICKER.MD
Created June 13, 2023 01:49
Javascript Custom Date Picker

JAVASCRIPT DATE PICKER

https://code-boxx.com/simple-datepicker-pure-javascript-css/

LICENSE

Copyright by Code Boxx

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

@code-boxx
code-boxx / 0-PHP-MVC.MD
Last active December 31, 2024 14:57
PHP MYSQL MVC Example

SIMPLE PHP MYSQL MVC EXAMPLE

https://code-boxx.com/simple-php-mvc-example/

NOTES

  1. Create a dummy database and import 1-users.sql.
  2. Change the database settings to your own in 1-model.php.
  3. Launch 3-view.html in your browser.

LICENSE

Copyright by Code Boxx

@code-boxx
code-boxx / 0-PHP-POS.MD
Last active December 30, 2024 22:06
PHP MYSQL POS
@code-boxx
code-boxx / 0-JS-TTS.MD
Last active December 19, 2024 23:21
Javascript Text To Speech
@code-boxx
code-boxx / 0-PHP-URL-SHORTEN.MD
Last active November 19, 2024 15:24
PHP MYSQL URL Shortener

PHP MYSQL URL SHORTENER

https://code-boxx.com/url-shortener-php-mysql/

NOTES

  1. RENAME 3b-htaccess.txt to .htaccess. Tested on an Apache server only – IIS and NGINX users, translate your own .htaccess.
  2. If not deployed at root, edit .htaccess. For example, http:/site.com/GO/ - Change to RewriteBase /GO/ and RewriteRule /GO/ 3c-index.php [L]
  3. Create a database and import 1-database.sql.
  4. Change the database settings 2-lib-shorten.php to your own.
  5. Access 3a-dummy.php to generate a dummy shortcode.
  6. That's all. Access http://site.com/SHORTCODE and it should redirect.