Skip to content

Instantly share code, notes, and snippets.

@oriadam
Last active February 11, 2021 13:27
Show Gist options
  • Save oriadam/15f912d4990f1aff951cea8deca9ab6d to your computer and use it in GitHub Desktop.
Save oriadam/15f912d4990f1aff951cea8deca9ab6d to your computer and use it in GitHub Desktop.
simple PHP mission
1. create a mysql db with the following tables:
items
item_id name category_id
categories
category_id name
2. add some initial categories and items.
3. create an html page that displays the items grouped by category (any interpretation is fine).
4. add a way to add new items. the item should also be added to the page instantly (ajax/SPA).
server side: php (any version you want)
client side: feel free to use jQuery, jQueryUI, React or any other js library
handle errors and xss, and write something that you are proud of
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment