Premium

School Website

Almost every Indian school site still says "Admissions Open 2024" — because nobody built a notice that knows when to leave.

  • PHP
  • MySQL

About this project

A full school website — home, about, academics, admissions, faculty, gallery, notices and contact — with an admin area for notices, faculty and enquiries. Plain PHP 8 and MySQL, seeded with realistic content for a fictional CBSE school in Nashik.

Go and look at almost any Indian school website and it still advertises last year's admissions or a sports day that already happened. That is the defining failure of the genre, and it happens because a notice gets published and nobody remembers to take it down. Here every notice carries publish_at and expires_at, the public query filters on NOW() between them, and the admin form requires an expiry date rather than defaulting to never. The rule applies to the detail page too — an expired notice returns 404 rather than sitting on a crawlable URL keeping last year's admissions page ranking. Underneath it, config.php pins PHP and MySQL to the same timezone, because unpinned on a normal machine those two clocks are 5.5 hours apart and every notice would expire at the wrong moment with no visible symptom.

What you will learn

  • Model content that expires, instead of content that is published and forgotten
  • Pin PHP and MySQL to the same timezone, and understand why a 5.5-hour gap is the default
  • Apply a visibility rule to the detail page and not just the list
  • Back a form rule with a database CHECK constraint for the paths that bypass the form
  • Escape LIKE wildcards so an admin search for "100%" does not return everything

Before you start

  • PHP basics — functions, includes, and working with dates
  • PHP 8.1+ and MySQL 8 (or MariaDB 10.4+)
  • No Composer, no Node — deploys to cPanel shared hosting as files

New to PHP? The free PHP course covers everything this project assumes.

Academic integrity notice

These projects are provided for learning, experimentation and reference. Understand the code, modify it for your own requirements, and acknowledge external work according to your institution’s academic policies. Priodemy does not supply work to be submitted as your own.