Library Information System
A PHP and MySQL catalog system for adding, browsing, updating and removing library books, with strict checks on copy counts.
- Challenge
- The catalog had to accept zero copies for titles with none on hand, while still rejecting negative numbers, decimals and malformed values like 007.
- Solution
- A strict server-side pattern, ^(0|[1-9][0-9]*)$, checks the copy count on both create and edit, so only clean whole numbers reach the INT column.
- Outcome
- A complete, validated catalog workflow delivered in the required eight-file format, with three sample books ready to import through phpMyAdmin.
- PHP
- MySQL
- PDO
- HTML5
- XAMPP
- phpMyAdmin
