Connect to MySQL with PHP in XAMPP / Create a new database

Поделиться
HTML-код
  • Опубликовано: 13 июл 2024
  • This video will discuss how to create a database using PhpMyAdmin and connect to that database using PHP- mysqli. Syntax is discussed as well as some best practices. There a re many outdated tutorials which use mysql - these should not be used interchangeably.
  • ХоббиХобби

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

  • @kenson_kw
    @kenson_kw 2 года назад +92

    I just realized, information never dies! This video is 8 years old and turns out this information is exactly what i needed and how i needed it in 2022 😮‍💨. Thank you dude!

  • @maxmoore8480
    @maxmoore8480 8 лет назад +6

    This tutorial was not only exactly what I needed but well explained, clear, and slow but concise, thanks a lot!

  • @Mayur_
    @Mayur_ 10 лет назад +15

    Thank you!
    :)
    I was trying to connect html form to my database, wasn't working.
    But it's perfect now.
    Simple and correct video.

  • @99plus89
    @99plus89 8 лет назад

    It was a day saver for me! I tried 5-7 another PHP ways connect to the database on latest versions XAMPP Unsuccessfully. This video obviously showed the right way. Thank You very much.

  • @TheOriginalDarkGlitch
    @TheOriginalDarkGlitch 4 года назад +1

    Thanks for making this video. I just started fooling around with MySQL and was following another tutorial that didn't explain this part at all.

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

    Very Helpful thank you! As someone who struggles with learning PHP I thought this was one the best videos I've seen in a while. If you haven't done so would you consider doing a beginner PHP / MySqL Tutorial Series for phpMyAdmin. Preferably focus on more the PHP aspect but general overview of the others would amazing also.

  • @Tommeke11
    @Tommeke11 10 лет назад +4

    Thank you for this video! My course notes weren't complete for the starting part and connection. This video saved me from a lot of headaches. The start is definitely the most difficult part.

    • @KenSwartwout
      @KenSwartwout  10 лет назад

      Getting started can be intimidating. Very happy to help!

  • @TheAhernFamily1
    @TheAhernFamily1 8 лет назад +19

    This is really easy to follow thanks for the great tutorial.

    • @KenSwartwout
      @KenSwartwout  8 лет назад +1

      +Aheezy Da Islander You are welcome and thanks for the feedback.

  • @ismailabdow3844
    @ismailabdow3844 3 года назад

    Now connected after 10hrs of struggling with other videos .. Very helpful

  • @itstobystic
    @itstobystic 4 года назад +1

    This guy's voice is cool, he made the video sound like a movie trailer. Thank you

  • @haritastbg
    @haritastbg 9 лет назад +6

    Thank you Ken. I have just started learning php. This video is of great help to me to create my database and first php program.

    • @KenSwartwout
      @KenSwartwout  9 лет назад

      Great to hear. Getting started with a test bed like XAMPP is a large barrier to overcome!

    • @shahsulaiman851
      @shahsulaiman851 4 года назад

      ulearn

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

    amazing tutorial, clear,concise and exactly the tutorial i needed.

  • @Xarbrough
    @Xarbrough 8 лет назад +1

    Thank you, this is perfect for getting started!

  • @PanduricaBlues
    @PanduricaBlues 6 лет назад +4

    That´s the voice I want to have in my tutorials. Even if you´d be talking about how to eat pudding I would listen to you :)

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

    i'm a student and i'm here to say that your video still saves me, thanks a lot!

  • @karvin9
    @karvin9 9 лет назад

    Thank you Ken, I found this video a lot more helpful than other videos I found online

  • @imtiazxkhan
    @imtiazxkhan 3 года назад

    7 years and still this video is lit!!!

  • @robynbazsika239
    @robynbazsika239 9 лет назад +6

    Thanks so much. I am just teaching MySQL and PHP to my High School Students. This is a great video and very informative.

    • @KenSwartwout
      @KenSwartwout  9 лет назад +3

      Great to hear. Getting started is one of the more difficult parts of the process.

    • @420blazeurmomacrossmaptoma5
      @420blazeurmomacrossmaptoma5 9 лет назад +3

      Robyn Bazsika You're a teacher you swine, you should know this shit and not have to google it in order to understand it - i hate you and your students.

    • @420blazeurmomacrossmaptoma5
      @420blazeurmomacrossmaptoma5 9 лет назад +1

      Robyn Bazsika 22 Middleton Rd, Kew, Dunedin 9012 got u bitch

    • @420blazeurmomacrossmaptoma5
      @420blazeurmomacrossmaptoma5 9 лет назад +1

      420blazeurmom acrossmaptomahawk im coming to teach ur students a real lesson \
      for once

    • @420blazeurmomacrossmaptoma5
      @420blazeurmomacrossmaptoma5 9 лет назад

      420blazeurmom acrossmaptomahawk .

  • @sistematico17
    @sistematico17 6 лет назад

    Well explained and concise. Thanks so much!

  • @venkateshprasad6432
    @venkateshprasad6432 6 лет назад

    short and simple tutorials ,thanks dude

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

    this is the cleanest tutorial ever! thank you, god bless you!

  • @tekoreypy
    @tekoreypy 5 лет назад

    great tutorial, the best one for sure, clear and simple

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

    finalllyyyy after trying for 3 days your way got this connected!

  • @colinhastings9215
    @colinhastings9215 7 лет назад +1

    You are my hero! Thank you for this video!

  • @arpandas411
    @arpandas411 9 лет назад +2

    Excellent video! Works Perfectly for me!

  • @ethanlee2197
    @ethanlee2197 10 лет назад +3

    Hi there, I wanted you to know how much I appreciate you video. Thank you very much. I've been having trouble connecting to database for like a whole day and then after watching this video, man its funny really. I put the password as root.

    • @KenSwartwout
      @KenSwartwout  10 лет назад

      When you are not sure exactly what you should be doing it can be a nightmare!

  • @ccc6495
    @ccc6495 6 лет назад +1

    Thank you so much, echo"Great work!!!"

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

    Found this extremely useful, appreciate it

  • @DaleGomes
    @DaleGomes 10 лет назад +1

    Thanks Ken. Worked just the way you said it!

    • @KenSwartwout
      @KenSwartwout  10 лет назад

      That is always good to hear. There are many places that the process can go the wrong direction

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

    This is really easy to follow thanks for the great tutorial. ☺

  • @aashimamadaan2
    @aashimamadaan2 7 лет назад

    really ...thanks a lot !!!!!!!Your work is appreciable....it seemed so difficult but you made it easy :)
    I hope you will make more such videos
    all the best

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

    Great tutorial! Easy and fast.

  • @DylanEscobar
    @DylanEscobar 7 лет назад +4

    helped me with my pokemon go server! thnx!

  • @Dominarfans
    @Dominarfans 5 лет назад

    thanks for the support , that really worked , GREAT WORK !!!!

  • @tonthekid7946
    @tonthekid7946 8 лет назад +1

    Good job, Thank you for your tutorial.

  • @theossettoracle
    @theossettoracle 9 лет назад +1

    Thanks for that, very helpful!

  • @jannvega8475
    @jannvega8475 9 лет назад +1

    Ahh ,, Thank you. This video's really help me a lot. :)

  • @davidsmith-ws4bz
    @davidsmith-ws4bz 4 года назад

    For learning right click the XAMPP ICON and select" Run as Administrator", otherwise its easy to end up locked out. Thanks for the vid.

  • @aerotechplustwo6914
    @aerotechplustwo6914 8 лет назад

    thank you for clarifying that for me.. this is very much greatly appreciated sir.

  • @papaOhmTV
    @papaOhmTV 7 лет назад

    Very helpful video! Thank you so much!

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

    Information never dies this is exactly what I need and it is from 9 years ago
    😄😄😄

  • @ankitabhishek5575
    @ankitabhishek5575 6 лет назад

    thanks a lot.was misguided by other videos.saw yours and it worked.

  • @BarkhaLomor
    @BarkhaLomor 8 лет назад

    very helpful. simple and great!

  • @soudabuhanak7141
    @soudabuhanak7141 4 года назад

    cool cool cook
    i watched a 100's of video regarding this, but all of that video no going success
    you are only the one who make it success 100%
    thank you so much
    voice tone amazing!!!
    i appreciate this video since 2013

  • @jeffmatthews3312
    @jeffmatthews3312 10 лет назад +2

    very helpful, thank you!

  • @elvisadjei2062
    @elvisadjei2062 9 лет назад

    Good work done. uv really helped me in my assignment. Thumps Up......

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

    10 years later I am watching these videos. Real G(Old) videos.

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

    Amazing and well explained tutorial.

  • @mohamedsuhailirfankhazi6628
    @mohamedsuhailirfankhazi6628 6 лет назад

    thank you friend! very well explained! :D

  • @bhaveshbhoye6942
    @bhaveshbhoye6942 3 года назад

    Thanks bro
    Love from India

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

    thank you so much!! that was super easy.....

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

    Very good Video which easy to understand and thank you for sharing

  • @MikesTrackBuilding
    @MikesTrackBuilding 9 лет назад +1

    Thank you so very much for the little series. Are you by chance going to do some more videos showing how to create and query databases?
    Mike

  • @sagarsole999
    @sagarsole999 3 года назад

    Thanks It Really Helpful for me.

  • @tahirabbas2811
    @tahirabbas2811 6 лет назад

    You're love man and of course RUclips is love. Thanks

  • @coolkid5146
    @coolkid5146 7 лет назад

    Thank you so much. My code actually works. You earned a sub and a like.

  • @ramasamy6098
    @ramasamy6098 9 лет назад

    wow very nice indeed great thank you verymuch sir. I was struggling past two days how to connect it helped me a lot.......... :) god may bless you

  • @jeremiahrighteous7499
    @jeremiahrighteous7499 6 лет назад

    God bless! it works and you save me alot of works. thanks

  • @aemonwarrick4654
    @aemonwarrick4654 8 лет назад

    Sir, You are a god send thank you so much.

  • @Lazar94SRB
    @Lazar94SRB 7 лет назад +1

    Finally code that works!

  • @johnsdaniel8394
    @johnsdaniel8394 3 года назад

    thank you..was really helpful

  • @pockeybearmilk264
    @pockeybearmilk264 6 лет назад

    thank you so much now I understand how it works , thank you again

  • @bernardnasinyama6871
    @bernardnasinyama6871 6 лет назад

    thank you, you just inspired me to go on

  • @abdurrazzak1612
    @abdurrazzak1612 8 лет назад

    thanks that was my first connection on php

  • @bluffer8352
    @bluffer8352 6 лет назад

    Great explanation, cheers.

  • @shahaburrahman1474
    @shahaburrahman1474 7 лет назад

    thank u so much...it really works

  • @vyuutuube
    @vyuutuube 9 лет назад

    Got it, after i added the port number it worked... (80 was occupied so i changed it to 81) but then how to connect was:
    localhost:81/phpmyadmin
    the panel like in the video came available then. GREAT

  • @kartikangira
    @kartikangira 8 лет назад

    thanks for the help working like a charm

  • @elieri00
    @elieri00 7 лет назад

    Thank you, great video.

  • @himanshujoshi4435
    @himanshujoshi4435 8 лет назад

    grate video it's gain my knowledge..... thanks/////

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

    Thank you for this!

  • @kalytheo
    @kalytheo 4 года назад

    Great work! Thank you!

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

    thanks man that was helpful!😍

  • @danahgarwan9585
    @danahgarwan9585 10 лет назад +1

    This is helpful, Thank you!

  • @amrityamsrivastava7598
    @amrityamsrivastava7598 7 лет назад +1

    nicely explained.
    thanks ..

  • @ismailabdow3844
    @ismailabdow3844 3 года назад

    Thank you so much u help mi a lot best video

  • @audreyderrick4972
    @audreyderrick4972 6 лет назад

    thank you, answered my question

  • @dennist.8018
    @dennist.8018 9 лет назад

    yup, works fine, good tut, thnx!

  • @omkarpimpude4967
    @omkarpimpude4967 7 лет назад +2

    thank you very much :) ...!!!

  • @lakemartin4959
    @lakemartin4959 7 лет назад

    I got it, so i'm giving you a thumbs up and because you don't move super fast and speak very plainly i.m going to subscribe...:-)

  • @meet2football
    @meet2football 7 лет назад

    helpful for me....thanks dude..

  • @ravichandra1830
    @ravichandra1830 5 лет назад

    thank u for your help this video helped me a lot

  • @procoder1745
    @procoder1745 6 лет назад

    very nice sir you are great

  • @sememamos880
    @sememamos880 5 лет назад

    Really helpful.
    thank you

  • @PeteMac84
    @PeteMac84 6 лет назад

    Great! Finally got it.

  • @alexcharlton2316
    @alexcharlton2316 10 лет назад

    Very useful, Thanks!

  • @abdulrashid7148
    @abdulrashid7148 9 лет назад

    Awesome work !!!

  • @edwinmukhalisi5015
    @edwinmukhalisi5015 8 лет назад

    Awesome Helped me Big Time

  • @BrofaBloke
    @BrofaBloke 9 лет назад +9

    No comments pointing out he used the $db variable twice? (Once to store the dbname and again to create the connection). Either way good video as this bit of information is often overlooked in the classroom...

    • @knlkumar
      @knlkumar 5 лет назад

      assigned to a function mysqli with new prefix. i think both variable works differently even after having same name

  • @gtuouts794
    @gtuouts794 8 лет назад +1

    THANK YOUUUUU!!!!...
    I was so close to giving up... thanks for the detail too...
    Do you have a video on how to link a user's password to the phpMyAdmin database?

  • @105bobbo
    @105bobbo 6 лет назад

    Oh my goodness, thanks bro !!

  • @simonabotanicalhome
    @simonabotanicalhome 5 лет назад

    Thanks, very useful!

  • @procoder1745
    @procoder1745 6 лет назад

    this video is mind blowing

  • @thanhluanduong8616
    @thanhluanduong8616 4 года назад

    thanks you so much, helped a lot :))

  • @pavanimallivalli2081
    @pavanimallivalli2081 3 года назад

    It is easy way tq you sir

  • @alvinaaslam5343
    @alvinaaslam5343 5 лет назад

    great video thank u soo much

  • @NileshShinde4583
    @NileshShinde4583 5 лет назад

    Very nice video

  • @shozab2012
    @shozab2012 9 лет назад

    nice work ken

  • @rupalichaudhari1714
    @rupalichaudhari1714 8 лет назад +1

    nice tutorial.

  • @AdamMcquiff
    @AdamMcquiff 9 лет назад

    Great tutorial.