Simple CRUD application with PHP and JSON

preview_player
Показать описание
In the following video we will create CRUD application with PHP.
The data will be written and read from JSON file.
We will read the data and display in a bootstrap table.
We will implement the functionality to create new records, update or delete existing records.
We will add form validation to our application.
We will implement image uploading and saving to file system.

Project repo:

Follow me on social media:
Рекомендации по теме
Комментарии
Автор

This is exactly what I needed. No book can explain it like this; I've spent months downloading free books and that didn't teach me much. Thank you very much!

dumbledoornguyen
Автор

this is the best php crud tutorial I've found on YouTube, good work sir... 👍👍👍

eclipse-cmd
Автор

in 36:19, to allow different types of images, we could just name the uploaded image by its original name like this
$_FILES['picture']['name']

ilyesmilyesm
Автор

When I upload pictures, sometimes I have to clear the browser cache for the images to be updated. So is there any other way?

longdang
Автор

the best explanation i've found!!
thanks man!

bitcoiner
Автор

it very useful when you wrrite the code with us not wrriten before the different is huge for me at lest than you for your effort very good job.

dinaahmed
Автор

Great man!
echo "You are the best thecher";

safara_umarov
Автор

Why does your app not give "headers already sent " error?
I had to move include 'partials/header.php' after if "($_SERVER['REQUEST_METHOD'] === 'POST') " to stop getting that error.

lucasrodrigues
Автор

This is simple and perfect tutorial. Thanks man,

tarunraja
Автор

What are you using to generate those in-browser error messages ?

hooliator
Автор

will this code work too if the json file is at the Api endpoint(url) ?

bryandelacruz
Автор

Awesome video we got here. Keep it up!

j-softwaremanagementtechno
Автор

About the section you want to change the user method title u can use $header-title; and declare it in each page with the specific name
And dont forget to use <?php echo $header-title; ?>

muhammadgamalzayan
Автор

Is it secure to use Json file as a database ?

hichamelalaoui
Автор

Thanks in advance bro. God bless you. :D

two-zero
Автор

You helped me a lot. Thank you kindly!

bigywhile
Автор

Can php and json make something similar like "soft delete"

veilixakawaii
Автор

Great tutorail here man, but im running into a problem, when i press the submit nothing happen but fresh, datas r not changing, it probably has something to do with server request method, coz when i changed something and do the dump, the request method is get still instead of POST, im running 7.4 php, how can i fix it ?

ddplart
Автор

What if i'm using a mysql server instead of a locally stored json file?

ezzelofficial
Автор

thank you
if you add session will be the best

mahmoudselim