PHP and MySQL with CRUD Operations: Create, Read, Update, Delete
Vložit
- čas přidán 18. 05. 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/course/aspnet-c...
Build E-commerce Web API using ASP.NET Core : www.udemy.com/course/build-as...
Build E-commerce Web Application using React JS : www.udemy.com/course/build-co...
⬇️ Free Document Proofreading ⬇️
► Grammarly : grammarly.go2cloud.org/SH3YB
Wow! What an awesome video. I am already feeling confident working with PHP having come from the JavaScript world.
I just started studying Visual Studio and you my friend is the best and my favorite teacher. Thank you
Concise course. Well prepared. Well presented. Thank you very much. Keep up. All the best.
Excelent video! I'm brazilian and with my poour english i managed to do. You are very good teacher.
I love your programming tutorials on CZcams.
I Love You Mate, I was doing a freelance project and I was stuck but you helped me! Thanks
Appreciate it that Bob also made it on the list
Great video. Thanks for the effort taken to show this
AWESOME!!! Just what I was looking for. Beautifully explained and presented!!!!
Thank you so much! Everything is worked. You really helped me. Thank you, teacher
THANK YOU MISTER THIS REALLY A BIG HELP IN MY CAPSTONE PROJECT!!! THANKS YOU VERYY MUCHHHH
This tutorial is amazing and you are really good at teaching !! great job sir !
100% agreed
Thanks! Excellent video! Really helped me. Congrats! You're amazing
Thanks the best CRUD video on this platform
This is an excellent lesson and the code works. Thank You!😊
It was really helpful. Thank you very much!
شرح اكثر من رائع شكرا لك عزيزي
So easy explain, very helpful, thanks!
Thank you for making such a great tutorial
Thank you so much. Joined u on patreon as well.
Thank you for your support
Good one , easy explanation short method thanx it helped alot in my project
Amazing. i have just watched this full video. easy explanation.
waiting for more videos.🤚
😊
OMG ITS WORKED! Guys it really worked. Thank you maboy
How do you fix the edit part?
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.
Hello, can you help me out
Nice Course It's worked thank you so much
great tutorial for php mysqli html table !!!
Thank you sir for this video 😊
Thanks for this imp topic that you have covered
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
Great tutorial.
Thnks a lot for your video brow, i can lerning this..
Great Example !
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!
Thank you very much Sr.
Very good tutorial.
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.
really very usefull...thank u
Thank you very much❤❤.
شكرا استاذ🙏🙏
that was amazing tutorial sir
awasome video thanks very much
Best teacher
Best tutorial ☺️☺️
thank you sir you help me a lot.
Thank you!
Thank you so much
Thank you so much ☺
bro your language is fantastic
Thank you god bless
Thank's you so much
thankyou i can now graduate
thank you!
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.
Nice!!
nice tutorial
excelente video muy
You are amazing my dear... But my question is can i use the same file in a different computer
👍🔔 Very good
Top!
Great tutorial, although you left out some things and I had to figure and refigure them out myself.
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
Thank you very much, I have learned a lot.
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?
thankyou for the tutorial
but can i get the source code for this, its not available in the description box
الشكر برشا
thanks
Obrigado.
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?
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.
Hello. How do you bind data plz?
do you have a tutorial like this that not using bootstrap? thanks..
I clicked on the resubmit form when working on this project the new client form is no longer loading or showing any help
merci bcp
can you do that with ajax, I will be grateful if you help with that
after applying your example ! , I have Lots of warning errors (Warning: Undefined array key "id") , would you plz, support ?
Good tutorial, but would have been nice If we can see the source code, following from just the screen is difficult and confusing.
excellent video... do u have any course to buy about php?
where did u lost SuccessMessage after successfull now client registration ?
Hi, How can I be able to delete records, but how can I add an alert that will confirm the deletion, but I don't know how to do it, I've been looking and nothing.
Sir can you plz write error message and success message display code here
What would I do if I had radio buttons with the value part already filled
MUITO BOM🤙
Can you help me, the existing data is not showing on edit page
i have some issue server saying THIS REQUESTED URL WAS NOT FOUND IN THIS SERVER what shoud i do
Thank you for making such a great tutorial, it helped me a lot, It is possible to ask you question related to php, are you on instagram?
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
SQL QUERY i copied on description error it has !on email same as i delete itPLS help me Tnxs
What if the client who add his own info and admin receive infos in admin panel
Excelent video!
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?
Where can I get the source code sure?
Can the website be opened properly on phones?
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
you should use: $_POST['....'] (capitals)
you didn't show us how we can display the error of duplicating an email which is unique in our data base
hi, can anyone help? my $connection variable is showing undefined for this - help please
This is very concise but as such it was prone to errors; I spent about a month to troubleshoot this and get it to "work". I was missing end tags and syntax errors as I tried to replicate the process.
i'm having the same issue. can you help me?
in the (edit.php),
$sql = "UPDATE clients "."SET nome = '$nome', email = '$email', telefone = '$telefone', endereco = '$endereco' "."WHERE id = '$id' ";
if I remove the ' ' from the $id, it throws an error in this line ( $result = $conection->query($sql); )
if I let it like this ( WHERE id = $id"; ) it finishes the process, but it doesn't save the data.
@@lucasferreira8229tbh, i find it better not to concatenate and just plain write it like echo "sql query code..." Than echo "" . " " . "";
@@lucasferreira8229 Hi Lucas. Do you still need help?
Can you share a source code?
A link for the source code would be great thanks
can i get the source code i followed your video and its giving me the warning erros
I really don't know how you were able to run the invalid query in create.php
I entered like 5 rows in teh database but my php only shows one row