16 | Create a Database in MySQL PHP Tutorial | 2023 | Learn PHP Full Course for Beginners

Поділитися
Вставка
  • Опубліковано 8 тра 2023
  • In this PHP tutorial I will talk about how to create a MySQL database, to use together with our PHP code! 🙂 Creating a database for our website is a very exciting point on our lessons, since it will allow us to create some extremely cool features using PHP in our website.
    ➤ GET ACCESS TO MY LESSON MATERIAL HERE!
    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 and UA-cam Memberships to share improved and updated lesson material, and for a small fee you can access all the material either from my memberships or Patreon, depending on your preference. I have worked hard, and done my best to help you understand what I teach.
    I hope you will find it helpful :)
    Memberships: / @dani_krossing
    Patreon: / mmtuts

КОМЕНТАРІ • 59

  • @KenyanMangroveWaigi
    @KenyanMangroveWaigi 3 місяці тому +55

    Did Elon Musk and Mr Beast have a baby?

    • @whoreadsmyname
      @whoreadsmyname Місяць тому +2

      lmao

    • @TradingAssets
      @TradingAssets Місяць тому +4

      I literally came here for this comment Lmaooooo😂. Glad i am not the only one😅

    • @SuperEvo1990
      @SuperEvo1990 Місяць тому +3

      My 12 yo niece said are you watching Mrbeast...

    • @stevenjue1209
      @stevenjue1209 7 днів тому +1

      Be nice buddy

  • @omarghabawi1913
    @omarghabawi1913 5 місяців тому +10

    Thank you so much for taking the time to record yourself in the tutorials. It's extremely helpful for your followers to be able to stay focused and avoid distractions. Your efforts are greatly appreciated!

  • @AgenceWebSigma
    @AgenceWebSigma 3 місяці тому +5

    I find myself obliged every time watching one of your videos to thank you again and again !!!

  • @jam-pw7fv
    @jam-pw7fv 9 місяців тому +5

    Thank you so much Dani i really enjoy your lessons and have learnt alot..... God bless you

  • @PrimephotoStudio
    @PrimephotoStudio Рік тому +1

    Video is very helpful, thank you for sharing with us.

  • @JefferyHarrold
    @JefferyHarrold Рік тому +14

    I've always felt the PHPMyAdmin screen for creating a table needs to hide 90% of the options when filling in the column options. Just needs hiding behind an 'Advanced' shortcut...then a 'More Advanced' shortcut for the database breaking options you shouldn't be touching!
    The people who would need to use those options wouldn't use PHPMyAdmin anyway.

  • @bilalbeny4172
    @bilalbeny4172 4 місяці тому

    I'd like just to say Thank you so much.

  • @jhernandez59
    @jhernandez59 Рік тому

    Thank you very much, I like your videos 👍

  • @danieltsega8493
    @danieltsega8493 Рік тому

    thanks for this awesome lesson

  • @marvetoons1625
    @marvetoons1625 Рік тому +1

    Great content

  • @Bawa.365
    @Bawa.365 10 місяців тому +5

    Thank you Sir. From Nigeria!!!

  • @akashgola2153
    @akashgola2153 2 місяці тому +1

    The other side of the PHP - sql. Let's go yay

  • @delta13dek
    @delta13dek 3 місяці тому +2

    I can't credit you enough for touching on issues like, error messages and others things that people wonder. Another great example was when looping though BOTH index array and associated arrays

  • @Oprekode
    @Oprekode 10 місяців тому +1

    very nice tutorial sir .

  • @BuscandoPiedras
    @BuscandoPiedras 10 місяців тому +11

    Hey Dani, When they go to make an Elon Musk movie, I recommend you do a casting. :)

    • @happyvapor4670
      @happyvapor4670 3 місяці тому

      Recently said this on another video.. cousins.

  • @whatscooking104
    @whatscooking104 Місяць тому +1

    By pure coincidence, I watched the datetime part on the 14th of the month at exactly 11:30. What are the odds of that.

  • @rimantasdanilevicius6754
    @rimantasdanilevicius6754 Рік тому +2

    Does this content will be expanded to server database or it is just for localhost db? Because I do not understand how to handle routes and databases on server, I mean how to move project from Loalhost play ground to real live server :)
    But thank you for this lesson. Fresh info is always useful :)

    • @Dani_Krossing
      @Dani_Krossing  Рік тому +5

      Whenever you buy hosting from a hosting company from your website, their dashboard should give you access to a database for your server. 🙂 In most cases the server will be a MySQL server, like the one in our localhost.
      There is really no difference in setting it up. Just open PhpMyAdmin from the dashboard when you log into your hosting company site.

  • @Warmaster2143
    @Warmaster2143 Рік тому

    will you be covering using a Guid for the id vs using a int ast the id of a table

    • @Dani_Krossing
      @Dani_Krossing  Рік тому +1

      No I will be using a INT as the id in these lessons. For a beginner course it is best not to overcomplicate things, so using INT is better for beginners than trying to explain globally unique identifiers. 🙂

  • @henrylouistamon8369
    @henrylouistamon8369 Місяць тому

    After checking the run as administrator, access is still denied. Can you help?

  • @cgianimationtv1828
    @cgianimationtv1828 11 місяців тому

    Please 🙏 sir, can you code a forum script, thanks for your efforts and understanding

  • @Stoney_Eagle
    @Stoney_Eagle Рік тому +2

    Right-joins are the best joins 😂
    PHPMyAdmin can use a little 2023 overhaul and have dark mode.

    • @quahogfamily8971
      @quahogfamily8971 Рік тому +1

      I would prefer it to have it as it is than to have it broken with better UI

  • @FriendlyTap
    @FriendlyTap 4 місяці тому +1

    hey should i start learning from the beginning or its okey if i follow up from here bcs i need just database

    • @Dani_Krossing
      @Dani_Krossing  4 місяці тому

      If you know the basics of PHP, then you can just follow from here on out. :) After this section, where I show the basics of databases, I will show how to interact with the database using PHP.

    • @FriendlyTap
      @FriendlyTap 4 місяці тому

      @@Dani_Krossing ty sooo much for ur help

  • @fotonext7441
    @fotonext7441 10 місяців тому

    It was interesting to create the database with php, not from phpmyadmin

  • @scgameryo
    @scgameryo 5 місяців тому

    hey just wondering what sofwere do you use for ur code

  • @mauricechidi4644
    @mauricechidi4644 Рік тому

    Please make a video on how to connect backend to frontend please

    • @Dani_Krossing
      @Dani_Krossing  Рік тому +1

      That is the plan once we have learned about SQL 🙂

    • @mauricechidi4644
      @mauricechidi4644 Рік тому

      @@Dani_Krossing thank you sir, I enjoy all your tutorials thanks a lot

  • @jmakaza2936
    @jmakaza2936 2 місяці тому

    Hi are you Elon Musk? thank you i have subscribed

  • @matrixovercome
    @matrixovercome 9 місяців тому

    Thank you sir
    how to get php job ?
    Php developer roadmap ?
    Can you make any video for it

    • @Dani_Krossing
      @Dani_Krossing  9 місяців тому +1

      Learn HTML and CSS, then PHP, then whatever framework is most popular atm, and focus on getting good at that particular framework, rather than "learning more". A CMS system like WordPress isn't a bad idea either. 🙂

    • @brianc.espiritu794
      @brianc.espiritu794 8 місяців тому

      @@Dani_Krossing Can I go to laravel after I finish your PHP course?

  • @bladeharry826
    @bladeharry826 2 місяці тому

    How to solve this error 😢
    Fatal error: Uncaught mysqli_sql_exception: Access denied for user 'root'@'localhost' (using password: NO) in C:\xampp\htdocs\phpmedi\class9.php:15 Stack trace: #0 C:\xampp\htdocs\phpmedi\class9.php(15): mysqli_connect('localhost', 'root', Object(Sensitive Parameter Value)) #1 {main} thrown in C:\xampp\htdocs\phpmedi\class9.php on line 15

  • @GinodPethmin
    @GinodPethmin 27 днів тому

    Elon musk!

  • @doms_cinema
    @doms_cinema Місяць тому

    can someone know video where they actually use real website and data base not on they own pc pleaseeee ??

    • @Dani_Krossing
      @Dani_Krossing  Місяць тому

      Your hosting provider should have a MySQL database available for your website, which you can access by logging into your dashboard on their website. 🙂 They also have the information you need, to connect to the database, inside your PHP code. Such as username, password, and server address.
      If you can’t find that information, or your MySQL database on their website, then you need to contact them about where to find it.
      And from there on out, it’s the same process as I show in my videos, since everything will be exactly the same. 👍

    • @doms_cinema
      @doms_cinema Місяць тому +1

      @@Dani_Krossing thank you 🙏 I actually watched another of your videos and it answered my question, great work brother.

  • @S-Lomar
    @S-Lomar 9 місяців тому

    😍😍😍😍😍😍😍😍😍🥰🥰🥰🥰😍😍🥰🥰🥰🥰🥰🥰🥰😍😍😍🥰🥰😍😍

  • @RagHelen
    @RagHelen 15 днів тому

    1:30 What? Everything is more complicated by a database and most websites would be better off without one. Wouldn't it be better to let inexperienced users drop text files or images into a directory?

  • @ansharyan710
    @ansharyan710 3 місяці тому

    good tutorial but gah damn bro is a yap monster

  • @md.asadullahjubayer5832
    @md.asadullahjubayer5832 Місяць тому +1

    I am sorry, are you virtual AI. you are blanding of Elon and Beast.

  • @elrobbo6
    @elrobbo6 Рік тому

    To be fair, you CAN make it so that the person can go in and change those things. Or in your contract you have update/maintenance covered and either there is a fee or part of the initial cost or a monthly fee and you can still do it as well as continue to make money. There are some people that don't want to do their own updates and some that shouldn't.

    • @Dani_Krossing
      @Dani_Krossing  Рік тому +1

      10 years ago when I had my first client, I made the mistake of never agreeing on a "update period" where he could test the site for changes, or texts he wanted changed. It resulted in months of emails where he wanted changes made, which get incredibly awkward after a while... Especially considering it was my first real client, and I didn't know how to properly deal with that situation. 😅 After that I made sure to always agree on either a "update period", or by hooking up a CMS to the site, alongside a "CMS teaching period" for them to learn how it worked.
      I personally never made a "maintenance contract" with anyone, in order not to bind myself to them, since I was doing freelance work short term. Anything after that they wanted changed, had to be paid, or they would have to hire another person to make the changes. 🙂
      It all depends on the situation, and whether or not the developer plan to make short or long term commitment with their clients. But like you said there are of course situations where it is much more beneficial, to make a form of "maintenance contract", if you plan on being a long term freelance developer. Whether or not they "should or shouldn't touch the site content", is only relevant if the developer doesn't see those situations as "income opportunities". 🙂 But of course it is a good idea to keep clients informed about potential situations like that, otherwise you aren't keeping your clients nest interests in mind. 😊

    • @elrobbo6
      @elrobbo6 Рік тому

      @@Dani_Krossing Yeah totally depends on the customer and the job. With a customer that wants to be pretty hands on a prebuilt CMS(as much as I hate them lol) is way easier than making your own. That's the best part about this job is learning new ways to tackle the same problems. Love your vids btw, I enjoy watching them myself, occasionally picking up little tid-bits here and there but recommend them to people all the time that come to me for advice on how to get into programming. Seems like anymore, as soon as people know you program they want help or advice lol. Which I happily give but your vids are put together well and I generally point them in your direction! I like the calculator as good into project. My favorite I like to tell people is blackjack. It's a little bit more advanced and depending on how much you want to do extra(have the dealer actually play, other players, even the visual and animations) it can be a really good learning tool. cheers!