30: Create a MySQL Table in Database | PHP Tutorial | Learn PHP Programming | PHP for Beginners

Create a MySQL Table in Database | PHP Tutorial | Learn PHP Programming | PHP for Beginners. Today we will learn how to create tables in a database. Tables are used to store data which is related to one another. As an example, if we want to store information on users in a website.


First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful :)

Material for this lesson: https://www.patreon.com/posts/php-30-download-15629712


Recommendations says:

I don’t understand the not null
How do we make sure it is not empty?
in other words which data we can insert to id column? just primary key and auto increment?

Gabriel Taylor says:

due to how languages change, you have to add: `subject`, `content` and `date` instead of just: subject, content and date. those marks are not single quotes there are “tick” marks.
those are above the tab button and to the left of the #1 button. i’ve never used them before and when i first had to use them it was a pain in the butt to find out the problem.

Jelmer says:

Why do you need to make a table the hard why?

ScreenPrintR says:

For some reason, I can’t copy and save. Doesn’t anyone know why?

alexsxe says:


Umair Mukhtar says:

so much thanks. you have made the MySQL and the SQL very easy. God bless you.

Eos April says:

The hard way is very ok 😉

Yanira Zelaya says:

Very nice tutos, thank you. I thought that Varchar only accepted up to 250 characteres. thank for the info.

Abhishek Bhandari says:

for some reason on the middle of the screen its displaying :

Write a comment


Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours