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

Поделиться
HTML-код
  • Опубликовано: 26 сен 2024
  • 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 RUclips 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

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

  • @omarghabawi1913
    @omarghabawi1913 9 месяцев назад +14

    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!

  • @KenyanMangroveWaigi
    @KenyanMangroveWaigi 7 месяцев назад +101

    Did Elon Musk and Mr Beast have a baby?

  • @AgenceWebSigma
    @AgenceWebSigma 6 месяцев назад +8

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

  • @JefferyHarrold
    @JefferyHarrold Год назад +16

    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.

  • @lennywilson2702
    @lennywilson2702 Месяц назад +1

    Thank you so much for making your time for this tutorials.

  • @Bawa.365
    @Bawa.365 Год назад +6

    Thank you Sir. From Nigeria!!!

  • @delta13dek
    @delta13dek 7 месяцев назад +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

  • @BuscandoPiedras
    @BuscandoPiedras Год назад +12

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

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

      Recently said this on another video.. cousins.

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

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

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

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

  • @raphaelsousa2046
    @raphaelsousa2046 15 дней назад

    thanks for teaching us php mr beast

  • @akashgola2153
    @akashgola2153 6 месяцев назад +1

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

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

    I came to the comments to say this guy looks like Elon Musk…but you all beat me to it! Great video! Ubscribed

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

    very nice tutorial sir .

  • @whatscooking104
    @whatscooking104 5 месяцев назад +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.

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

    thanks for this awesome lesson

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

    thank you sir

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

    Thanks!

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

    Great content

  • @chrisder1814
    @chrisder1814 25 дней назад

    hello I had ideas to use tools from our codes and do automation in my WordPress database but could you help me understand if my ideas are good and feasible

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

    Thank you very much, I like your videos 👍

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

    Bro looks like Elon Musk. Great tutorial btw!

  • @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

  • @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.

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

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

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

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

  • @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. 🙂

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

    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?

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

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

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

      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

  • @scgameryo
    @scgameryo 9 месяцев назад

    hey just wondering what sofwere do you use for ur code

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

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

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

    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

  • @doms_cinema
    @doms_cinema 5 месяцев назад

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

    • @Dani_Krossing
      @Dani_Krossing  5 месяцев назад

      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 5 месяцев назад +1

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

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

    Elon musk!

  • @S-Lomar
    @S-Lomar Год назад

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

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

    good tutorial but gah damn bro is a yap monster

  • @md.asadullahjubayer5832
    @md.asadullahjubayer5832 4 месяца назад +1

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

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

    You talk too much, teach

  • @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!

  • @jmakaza2936
    @jmakaza2936 5 месяцев назад

    Hi are you Elon Musk? thank you i have subscribed

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

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

    • @Dani_Krossing
      @Dani_Krossing  Год назад +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 11 месяцев назад

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