Simple CRUD application with PHP and JSON

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024
  • 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:
    github.com/the...
    Follow me on social media:
    / thecodeholic
    / thecodeholic
    github.com/the...

ความคิดเห็น • 72

  • @dumbledoornguyen5966
    @dumbledoornguyen5966 2 ปีที่แล้ว +4

    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!

  • @eclipse-cmd
    @eclipse-cmd 4 ปีที่แล้ว +2

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

  • @bitcoiner7
    @bitcoiner7 4 ปีที่แล้ว +2

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

  • @lucasrodrigues9766
    @lucasrodrigues9766 2 ปีที่แล้ว +1

    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.

  • @kelvezu1585
    @kelvezu1585 5 ปีที่แล้ว +8

    perfect php tutorial for 2019 :)

  • @macton182
    @macton182 3 ปีที่แล้ว +1

    Perfect! Thank you. Saved my Day.

  • @ilyesmilyesm2576
    @ilyesmilyesm2576 2 ปีที่แล้ว +2

    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']

  • @longdang8264
    @longdang8264 3 ปีที่แล้ว +2

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

  • @safara_umarov
    @safara_umarov 4 ปีที่แล้ว +2

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

  • @tarunraja9662
    @tarunraja9662 4 ปีที่แล้ว +1

    This is simple and perfect tutorial. Thanks man,

  • @sabuein
    @sabuein ปีที่แล้ว +1

    Thank you so much.

  • @expukpuk
    @expukpuk 4 ปีที่แล้ว +1

    Very nice. Thanks mate.

  • @j-softwaremanagementtechno9743
    @j-softwaremanagementtechno9743 5 ปีที่แล้ว +1

    Expert teacher you are...

    • @TheCodeholic
      @TheCodeholic  5 ปีที่แล้ว

      Thank you so much. It means a lot for me.

  • @dinaahmed92
    @dinaahmed92 ปีที่แล้ว

    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.

  • @brotakuu
    @brotakuu 5 ปีที่แล้ว +2

    Very informative!

  • @j-softwaremanagementtechno9743
    @j-softwaremanagementtechno9743 5 ปีที่แล้ว +1

    Awesome video we got here. Keep it up!

  • @ceozett
    @ceozett 4 ปีที่แล้ว +2

    great tutorial, perfect

  • @two-zero
    @two-zero 4 ปีที่แล้ว +3

    Thanks in advance bro. God bless you. :D

    • @TheCodeholic
      @TheCodeholic  4 ปีที่แล้ว +1

      Thank you brother.

    • @rykercamden9155
      @rykercamden9155 3 ปีที่แล้ว

      a trick : you can watch movies at kaldroStream. Been using them for watching loads of movies during the lockdown.

    • @harveysawyer2447
      @harveysawyer2447 3 ปีที่แล้ว

      @Ryker Camden yea, I've been using KaldroStream for years myself :D

    • @rohancrew1988
      @rohancrew1988 3 ปีที่แล้ว

      @Ryker Camden yea, have been watching on KaldroStream for since november myself :)

    • @bishopjared1078
      @bishopjared1078 3 ปีที่แล้ว

      @Ryker Camden definitely, have been watching on kaldrostream for months myself =)

  • @allenkim4776
    @allenkim4776 2 ปีที่แล้ว +1

    Thank you so much!!

  • @sklmea
    @sklmea 4 ปีที่แล้ว +3

    perfect thank you

  • @matatooo
    @matatooo 5 ปีที่แล้ว +1

    Helpful video great job.

    • @TheCodeholic
      @TheCodeholic  5 ปีที่แล้ว +1

      Thank you. It means a lot

  • @bigywhile8164
    @bigywhile8164 3 ปีที่แล้ว

    You helped me a lot. Thank you kindly!

  • @NoContextAi
    @NoContextAi 5 ปีที่แล้ว +1

    Great work keep it up !!

  • @muhammadgamalzayan
    @muhammadgamalzayan ปีที่แล้ว

    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

  • @bryandelacruz9066
    @bryandelacruz9066 5 ปีที่แล้ว +2

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

    • @TheCodeholic
      @TheCodeholic  5 ปีที่แล้ว +2

      file_get_contents can fetch the api data also if it is not blocked.
      The answer is "It depends..." you need to try it.

  • @ahmedatya6226
    @ahmedatya6226 4 ปีที่แล้ว +1

    very excellent Genius

  • @hichamelalaoui
    @hichamelalaoui 4 ปีที่แล้ว +1

    Is it secure to use Json file as a database ?

    • @TheCodeholic
      @TheCodeholic  4 ปีที่แล้ว +2

      No it is not. But this is not production ready app. This is just for practice.

  • @ddplart
    @ddplart 3 ปีที่แล้ว

    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
      @ddplart 3 ปีที่แล้ว

      My bad, torns out you can use it on the xampp local server , i put the code into my online server then the code worked just fine .

  • @hooliator
    @hooliator 2 ปีที่แล้ว

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

  • @stndc8788
    @stndc8788 3 ปีที่แล้ว

    Excellent video. How could I create a login only with json and php? Thanks!

  • @veilixakawaii9919
    @veilixakawaii9919 3 ปีที่แล้ว

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

  • @ezzelofficial7563
    @ezzelofficial7563 3 ปีที่แล้ว

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

    • @faresobaid6223
      @faresobaid6223 2 ปีที่แล้ว

      hi @Ezzel Official , you could implement the logic for that using - PHP PDO - , but it takes more work , however it will gives you the power of querying the data ,and you have to be careful for security issues , like sql-injection . I think he made this so simple to make the course short and practical .

  • @shaikhanuman8012
    @shaikhanuman8012 4 ปีที่แล้ว +1

    Brother make a videos on laravel it is very use your to your viewer's

  • @mohammedyasserramdane3396
    @mohammedyasserramdane3396 5 ปีที่แล้ว +1

    what your version Jason please ?

    • @TheCodeholic
      @TheCodeholic  5 ปีที่แล้ว

      It does not have version. Ita just JSON.

  • @mahmoudselim439
    @mahmoudselim439 4 ปีที่แล้ว

    thank you
    if you add session will be the best

  • @LyiarDev
    @LyiarDev หลายเดือนก่อน

    2024 here
    thank yooouu 🥰

  • @ولسوفيعطيكربكفترضى-ذ3ظ
    @ولسوفيعطيكربكفترضى-ذ3ظ 4 ปีที่แล้ว

    thank you sooooooo much ,
    can you tell me how i can add sound / audio?
    thanks

    • @TheCodeholic
      @TheCodeholic  4 ปีที่แล้ว +1

      You are welcome, but which audio do you mean?

    • @ولسوفيعطيكربكفترضى-ذ3ظ
      @ولسوفيعطيكربكفترضى-ذ3ظ 4 ปีที่แล้ว

      @@TheCodeholic mp3
      i want to make some thing like phrasebook, phrasebook with sound onclick, i want to use json file like your to be able crud it.
      can you help me please , what i should do.
      thanks

  • @pasizdobrekuce
    @pasizdobrekuce 4 ปีที่แล้ว

    Hey guys, can anyone help me w/ this tags on var_dump(). I am using VS Code and it would be pretty neat if I do not have to type every time echo ''; ... but rather just "dump" or var_dump() . Tnx in advance.

    • @TheCodeholic
      @TheCodeholic  4 ปีที่แล้ว +1

      Check the following links:
      code.visualstudio.com/docs/editor/userdefinedsnippets
      stackoverflow.com/questions/29995863/how-to-add-custom-code-snippets-in-vscode

    • @pasizdobrekuce
      @pasizdobrekuce 4 ปีที่แล้ว

      @@TheCodeholic Thanks a lot. BTW did you consider to do something similar to this project but OOP approach? I think it might be interesting to compare. Also it might help to understand OOP better, because ot that.

    • @TheCodeholic
      @TheCodeholic  4 ปีที่แล้ว

      @@pasizdobrekuce I am thinking something like this. I am thinking OOP Crash course with project similar to this.

    • @pasizdobrekuce
      @pasizdobrekuce 4 ปีที่แล้ว +1

      @@TheCodeholic That'd be great. Tnx.

  • @laibakhan9567
    @laibakhan9567 2 ปีที่แล้ว

    I feel good about this project, But I want to be an expert, not a bug creator.

    • @faresobaid6223
      @faresobaid6223 2 ปีที่แล้ว

      I think in order to be expert , we should be comfortable with bugs as a developer :)