kingsolomonwisdom/training-management-system ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple training management system for a school or company, using PHP and MySQL, with a clean Bootstrap style that works well on mobile too.

I want people to be able to register, log in, and manage their profile, while admins can see a dashboard with basic stats and recent activity. Admins should be able to create, edit, and delete training programs, set dates, categories, and capacity, then manage enrollments and see who signed up for what. Regular users should be able to browse available trainings, enroll in one, and check their enrollment history.

Please include secure password handling, session based login, role based access for admin and normal users, and basic form validation so bad data does not get saved. It would be great if the app can set itself up the first time it runs by creating the database and tables, and if you need to check current docs for anything, go ahead and look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab