Это видео недоступно.
Сожалеем об этом.

PHP and MySQL with CRUD Operations: Create, Read, Update, Delete

Поделиться
HTML-код
  • Опубликовано: 18 май 2022
  • Create Web Application using PHP and MySQL. How to connect to mysql database using PHP. How to fill HTML table from database using PHP. How to perform CRUD operations using PHP and MySQL.
    ********************************
    Source code on Patreon: / php-and-mysql-84465280
    ********************************
    Install XAMPP: • How to Install XAMPP 8...
    ********************************
    SQL Queries:
    CREATE TABLE clients (
    id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
    name VARCHAR (100) NOT NULL,
    email VARCHAR (200) NOT NULL UNIQUE,
    phone VARCHAR(20) NULL,
    address VARCHAR(200) NULL,
    created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
    );
    INSERT INTO clients (name, email, phone, address)
    VALUES
    ('Bill Gates', 'bill.gates@microsoft.com', '+123456789', 'New York, USA'),
    ('Elon Musk', 'elon.musk@spacex.com', '+111222333', 'Florida, USA'),
    ('Will Smith', 'will.smith@gmail.com', '+111333555', 'California, USA'),
    ('Bob Marley', 'bob@gmail.com', '+111555999', 'Texas, USA'),
    ('Cristiano Ronaldo', 'cristiano.ronaldo@gmail.com', '+32447788993', 'Manchester, England'),
    ('Boris Johnson', 'boris.johnson@gmail.com', '+4499778855', 'London, England');
    *************************** .
    ***********************************
    🔥 Complete Udemy Courses :
    Build E-commerce Web Application using ASP.NET Core : www.udemy.com/...
    Build E-commerce Web API using ASP.NET Core : www.udemy.com/...
    Build E-commerce Web Application using React JS : www.udemy.com/...
    ⬇️ Free Document Proofreading ⬇️
    ► Grammarly : grammarly.go2c...

Комментарии • 214

  • @happythrottlemotomedia5529
    @happythrottlemotomedia5529 2 года назад +9

    I just started studying Visual Studio and you my friend is the best and my favorite teacher. Thank you

  • @alfredgithinji3166
    @alfredgithinji3166 Год назад +8

    Wow! What an awesome video. I am already feeling confident working with PHP having come from the JavaScript world.

  • @carlosjunior2108
    @carlosjunior2108 8 месяцев назад +3

    Excelent video! I'm brazilian and with my poour english i managed to do. You are very good teacher.

  • @Mr.samomar
    @Mr.samomar Год назад +7

    I was get problem Here 24:09 When I use same Email, It's not only show the error massage It will break the code.
    Then I used try catch to solve the problem.
    try {
    $sql = "INSERT INTO clients (name, email, phone, address) VALUES ('$name', '$email', '$phone', '$address')";
    $result = $connection->query($sql);
    } catch (\Exception $e) {
    $erorrMsg = "Invalid Query: " . $connection->error;
    break;
    };
    Now it's working fine, Thank you so much for this tutorial.

    • @seint1044
      @seint1044 Год назад +2

      thanks brother

    • @Mr.samomar
      @Mr.samomar Год назад +1

      @@seint1044 Your welcome

    • @zekrom6537
      @zekrom6537 7 месяцев назад +1

      wow thank you was worth reading all comments to finally find a solution, my guess is that the youtuber added some extra lines somewhere that we cant see in the video thats why it doesnt work for us but does for him, but its not erorrMsg its errorMessage you made a typo there i assume but it works

  • @Dhika653
    @Dhika653 Год назад +5

    OMG ITS WORKED! Guys it really worked. Thank you maboy

  • @fishworxify
    @fishworxify Месяц назад

    AWESOME!!! Just what I was looking for. Beautifully explained and presented!!!!

  • @abdulhaq6060
    @abdulhaq6060 2 года назад +3

    I love your programming tutorials on RUclips.

  • @murtazausmani7004
    @murtazausmani7004 2 года назад +3

    I Love You Mate, I was doing a freelance project and I was stuck but you helped me! Thanks

  • @A_ALI24
    @A_ALI24 2 года назад +6

    Concise course. Well prepared. Well presented. Thank you very much. Keep up. All the best.

  • @MrTizinator
    @MrTizinator Год назад +1

    Appreciate it that Bob also made it on the list

  • @abovethenimbus
    @abovethenimbus 2 месяца назад +1

    thankyou i can now graduate

  • @nicoschulz4037
    @nicoschulz4037 Год назад +15

    Nice video with good explanation. Worked for me even without the source code. Took a while, but it worked.
    Just one quick question: Is there a simple way to add a confirmation to the delete-button before deleting? Thanks in advance.

    • @Kodexx_roy
      @Kodexx_roy Год назад

      Hello, can you help me out

  • @ramsuthar3473
    @ramsuthar3473 Год назад +5

    This tutorial is amazing and you are really good at teaching !! great job sir !

  • @infodiff
    @infodiff 4 месяца назад +1

    Thank you so much. Joined u on patreon as well.

    • @BoostMyTool
      @BoostMyTool  4 месяца назад +1

      Thank you for your support

  • @Sai-nr4tw
    @Sai-nr4tw Год назад +1

    THANK YOU MISTER THIS REALLY A BIG HELP IN MY CAPSTONE PROJECT!!! THANKS YOU VERYY MUCHHHH

  • @BhootFmOfficial786
    @BhootFmOfficial786 2 года назад +2

    Amazing. i have just watched this full video. easy explanation.
    waiting for more videos.🤚

  • @Kashalot24
    @Kashalot24 6 месяцев назад

    Thank you so much! Everything is worked. You really helped me. Thank you, teacher

  • @SoftwareScience
    @SoftwareScience Год назад

    Thanks the best CRUD video on this platform

  • @2007protsenko
    @2007protsenko 16 дней назад

    Very helpful, thank you👍

  • @benoittheriault2635
    @benoittheriault2635 2 года назад +4

    Since you are not binding data it’s dangerous for SQL injections. Also, data should be pas into test_input to make sure that injections is also impossible.

  • @Oprekode
    @Oprekode 19 дней назад

    Nice learning brother

  • @mineaks
    @mineaks Год назад

    Great video. Thanks for the effort taken to show this

  • @user-so5he3op1q
    @user-so5he3op1q Год назад +3

    شرح اكثر من رائع شكرا لك عزيزي

  • @zekrom6537
    @zekrom6537 7 месяцев назад +2

    OMG EDIT: right after posting this comment i realize whats the error because i read my comment again 🤦‍♂ the error is that its $results not $result its just that missing s what is causing the issues omg BUT then it gives a new error saying Warning: Undefined array key "id" :| ill edit it again if i figure it out i guess
    so i found the solution for getting the "warning undefined array key "id" error
    inside the edit.php scroll down to where you have the
    it should look like this:

    • @exenion
      @exenion 7 месяцев назад

      Thk dude for "warning undefined array key "id"

  • @user-ld2yx6vs9t
    @user-ld2yx6vs9t 4 месяца назад

    It was really helpful. Thank you very much!

  • @carrothed760
    @carrothed760 Год назад +8

    Good tutorial, but would have been nice If we can see the source code, following from just the screen is difficult and confusing.

  • @faktahati1007
    @faktahati1007 Год назад

    Nice Course It's worked thank you so much

  • @WebCrafters-yo7ju
    @WebCrafters-yo7ju Месяц назад

    What would I do if I had radio buttons with the value part already filled

  • @kat3586
    @kat3586 4 месяца назад

    Best teacher

  • @ashutoshgangwar2665
    @ashutoshgangwar2665 Год назад

    Thanks for this imp topic that you have covered

  • @hsgaming1251
    @hsgaming1251 Год назад

    bro your language is fantastic

  • @CodeWithAffan1
    @CodeWithAffan1 Год назад +10

    Edit and delete not working

  • @fernavas123
    @fernavas123 Год назад

    Thanks! Excellent video! Really helped me. Congrats! You're amazing

  • @miguelangelperezsantiago783
    @miguelangelperezsantiago783 Месяц назад

    Thank you very much Sr.

  • @ryoma8801
    @ryoma8801 8 месяцев назад

    Nice tutorial all works fine on me i solve it in just an hour. But i would appreciate if you added some pop up text when clicking delete button.

  • @HansAllende
    @HansAllende Год назад

    So easy explain, very helpful, thanks!

  • @abdumunib2417
    @abdumunib2417 2 года назад

    Good one , easy explanation short method thanx it helped alot in my project

  • @mervenwedaye5943
    @mervenwedaye5943 Год назад +2

    Hello sir, thanks a lot for this good you have done , could I ask you to do the same tutorial with PDO connection to the data-base. Thanks in advance

  • @yahyadede9133
    @yahyadede9133 2 года назад +2

    i have error in post method
    " Undefined variable $_post in " he said Trying to access array offset on value of type null in C:\xampp\htdocs\xampp\update.php on line 46
    can plz tell me why is that happen

    • @BaukeC
      @BaukeC 10 месяцев назад

      you should use: $_POST['....'] (capitals)

  • @randyortiz6151
    @randyortiz6151 Год назад +2

    This is an excellent lesson and the code works. Thank You!😊

  • @phc_kaodin
    @phc_kaodin 2 года назад

    Thank you for making such a great tutorial

  • @JippiMonster
    @JippiMonster Год назад +1

    When I click edit it says: "Invalid query: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1". Did anyone know why?

    • @mayonnaise.8210
      @mayonnaise.8210 Год назад

      This is my problem right now, I don't know what is the problem is😢

    • @BaukeC
      @BaukeC 10 месяцев назад

      What if you remove the '' around the $id in the query (...... WHERE id=$id")

  • @sukateknologi159
    @sukateknologi159 Год назад

    Thnks a lot for your video brow, i can lerning this..

  • @AlphamanKing
    @AlphamanKing 6 месяцев назад

    Great tutorial, although you left out some things and I had to figure and refigure them out myself.

  • @eurryherry1484
    @eurryherry1484 Год назад

    thank you sir you help me a lot.

  • @marcinzale
    @marcinzale 7 месяцев назад

    Very good tutorial.

  • @muhammadhusaynamilaiyub6911
    @muhammadhusaynamilaiyub6911 4 месяца назад

    sir what do i do if i'm using a foreign key for example each project has different multiple task and i am using foreign key so that whenever i add a task it will get the id of the project then the tasks i added in that project will display but when i edit i want a certain task i have to get the project id and task id how do i do that?

  • @ChandrajeetPratapSinghCJay
    @ChandrajeetPratapSinghCJay 2 года назад

    great tutorial for php mysqli html table !!!

  • @nimijoshy5319
    @nimijoshy5319 6 месяцев назад

    really very usefull...thank u

  • @medhabibbenyoussef9391
    @medhabibbenyoussef9391 Год назад +1

    you didn't show us how we can display the error of duplicating an email which is unique in our data base

  • @user-yi4uq4dx8h
    @user-yi4uq4dx8h 4 месяца назад

    I clicked on the resubmit form when working on this project the new client form is no longer loading or showing any help

  • @benedekszabo9121
    @benedekszabo9121 10 месяцев назад +2

    Almost everything is working correctly, but in the edit and in the delete always write that the id variable is not set to the URL. If i write the id manually to the URL (for example 'localhost/myshop/delete.php?id=1) it's working. Does anyone detected this problem?

  • @abdelkadertalbi7063
    @abdelkadertalbi7063 Год назад

    that was amazing tutorial sir

  • @riya_sharma1709
    @riya_sharma1709 Год назад

    Thank you sir for this video 😊

  • @keepitsimple3645
    @keepitsimple3645 Год назад

    awasome video thanks very much

  • @virginiasolomon1472
    @virginiasolomon1472 Год назад

    Wonderful youtube, thank very much!
    I wonder how to add a dialog with 2 buttons for acknowledge to delete the client or not.
    Thank you!

  • @nooni213
    @nooni213 8 месяцев назад

    شكرا استاذ🙏🙏

  • @waelzad4655
    @waelzad4655 Год назад

    Great Example !

  • @HelloWorld-so9uj
    @HelloWorld-so9uj 10 месяцев назад

    Thank you very much❤❤.

  • @lucaabg3796
    @lucaabg3796 2 года назад

    Best tutorial ☺️☺️

  • @JohnMarkDue
    @JohnMarkDue 3 месяца назад

    do you have a tutorial like this that not using bootstrap? thanks..

  • @techwithdenzel
    @techwithdenzel 2 года назад

    Great tutorial.

  • @edgarmelendez-qh1ed
    @edgarmelendez-qh1ed 2 месяца назад

    me parece un buen video...me salio un error de una alerta y no me deja ingresar datos del cliente, me podrias enviar el archivo para descargar en que falle..gracias

  • @hallatkordo4544
    @hallatkordo4544 Год назад

    Thank you god bless

  • @viane123456
    @viane123456 Год назад +4

    Can you share a source code?

  • @yeyestravelbites
    @yeyestravelbites 4 месяца назад

    Anyone has an idea why I;m getting uncaught exception when adding duplicate email?? Instead of catching the error and showing it as a dismissable warning message?

  • @waelzad4655
    @waelzad4655 Год назад

    after applying your example ! , I have Lots of warning errors (Warning: Undefined array key "id") , would you plz, support ?

  • @anonymous_0717
    @anonymous_0717 Год назад

    Thank you so much ☺

  • @cmcotrading
    @cmcotrading Год назад

    You are amazing my dear... But my question is can i use the same file in a different computer

  • @xcrud1.7crud13
    @xcrud1.7crud13 Месяц назад

    Nice!!

  • @mitarzirojevic2582
    @mitarzirojevic2582 Год назад

    Hello,
    In 87 line, if loop for executions success Message, i can't see all code for executions. Because of that i have error when i try enter a new user.
    Same thinks is with error message.
    Can you please paste code of success and error message in if loop?
    Thanks

  • @shakyxd
    @shakyxd 2 года назад

    Thank you so much

  • @user-cp4sk7rb3v
    @user-cp4sk7rb3v 2 года назад

    sir you make great tutorials thank you very much, do you think you could make one on how to make a chrome crypto prices extension or VS code extension? since they seem to be hot topics.

  • @AlphaNdiaye-yr4xq
    @AlphaNdiaye-yr4xq 5 месяцев назад

    Thank's you so much

  • @Beastfan_0-i3x
    @Beastfan_0-i3x Год назад

    i have some issue server saying THIS REQUESTED URL WAS NOT FOUND IN THIS SERVER what shoud i do

  • @trannhan1432
    @trannhan1432 11 месяцев назад

    Thank you!

  • @Henry_Nunez
    @Henry_Nunez Год назад

    👍🔔 Very good

  • @unior2676
    @unior2676 2 года назад +1

    Sir can you plz write error message and success message display code here

  • @raevenconsolacion2449
    @raevenconsolacion2449 Год назад

    i donr want to add other files i only want to put all code in one file
    how am i supposed to do that?
    please help me

  • @EDITVERSE37
    @EDITVERSE37 Год назад +3

    Bro In 20:49 what comes after aria-label

    • @meibxrry8233
      @meibxrry8233 Год назад

      did u get the code?

    • @zekrom6537
      @zekrom6537 7 месяцев назад

      button type='button' class='btn-close' data-bs-dismiss='alert' aria-label='Close'>

  • @khash1163
    @khash1163 8 месяцев назад

    thank you!

  • @vjpadron07
    @vjpadron07 Год назад

    excelente video muy

  • @teeyiheng4697
    @teeyiheng4697 Год назад

    Thank you very much, I have learned a lot.

  • @marisberzins4895
    @marisberzins4895 Год назад

    where did u lost SuccessMessage after successfull now client registration ?

  • @atienzaivanreint.9818
    @atienzaivanreint.9818 Год назад

    Can you help me, the existing data is not showing on edit page

  • @NetReklam-om3ds
    @NetReklam-om3ds 3 месяца назад

    Thanks for the tutorial but on some parts it's impossible to see the code
    Example:
    at time 20:14
    at time 20:49 it's impossible to see the bootstrap code
    I haven't finished the course for now. I hope there are no more parts where you can't see the code.

  • @Oprekode
    @Oprekode Год назад

    nice tutorial

  • @subashiyer3208
    @subashiyer3208 2 месяца назад

    can i get the code

  • @mal4797
    @mal4797 2 месяца назад

    Can the website be opened properly on phones?

  • @pendragontv945
    @pendragontv945 Год назад

    For some reason, the edit and delete function doesn't work for me, everything else does.

  • @zekrom6537
    @zekrom6537 7 месяцев назад

    at min 24 for some reason mine refuse to show the error message correctly with the yellow box around it and just shows a white page saying fatal error on line 34 in the create.php and that line is within these 3:
    $sql = "INSERT INTO clients (name, email, phone, address)" .
    "VALUES ('$name', '$email', '$phone', '$address')";
    $result = $connection->query($sql);

  • @arm5379
    @arm5379 Год назад

    hi, can anyone help? my $connection variable is showing undefined for this - help please

  • @nadjibdz6838
    @nadjibdz6838 Год назад

    What if the client who add his own info and admin receive infos in admin panel

  • @mo_zidan7259
    @mo_zidan7259 Год назад

    can you do that with ajax, I will be grateful if you help with that

  • @XhoryReMiX
    @XhoryReMiX 2 месяца назад

    I’m sure that you are Tunisian Cause we know the accent of Each other

  • @shreyas8534
    @shreyas8534 Год назад

    thankyou for the tutorial
    but can i get the source code for this, its not available in the description box

  • @alainlado
    @alainlado Год назад

    I really don't know how you were able to run the invalid query in create.php

  • @jakobdylancelestialcordero2329

    SQL QUERY i copied on description error it has !on email same as i delete itPLS help me Tnxs

  • @Dewnam
    @Dewnam Год назад

    I entered like 5 rows in teh database but my php only shows one row

  • @merimamerima3226
    @merimamerima3226 2 года назад +1

    the id is required for all table in database !!!!!