PHP MySQL Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

ความคิดเห็น • 696

  • @mehdid7996
    @mehdid7996 7 ปีที่แล้ว +73

    Been on youtube for years, and never felt the need to comment anything..
    Just to say how much i'm thankful to you and your work.
    I love the way you make every coding language basics seem so simple.
    Great job and thank you again !

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +5

      Thank you for the nice compliment :) I appreciate it!

  • @vernsalgorithm4903
    @vernsalgorithm4903 10 ปีที่แล้ว +1

    Had a job interview with a big company yesterday. One of the technical questions was about retrieving data from a database. Good thing I watched this video the night before, and I got a call this morning from them offering me the job. Thank you so much for these tutorials. You're really awesome.

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      Yuuri Evanov That is very cool! I'm very happy I could help :) Congratulations on the new job!!!

  • @victoryfile
    @victoryfile 6 ปีที่แล้ว

    Been doing PHP for over a month,never seen anything this concise and clear.

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว +1

      Thank you :) I'm glad you liked it

  • @GabeNtheFabulous
    @GabeNtheFabulous 9 ปีที่แล้ว +2

    New to PHP (I do embedded systems and OS development, so it's a bit out of my league) but your tutorials have been really helpful thanks so much!

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว +4

      Thank you :) I'm glad they have helped

  • @LordTPrime2100
    @LordTPrime2100 10 ปีที่แล้ว

    This video covered more in 19 minutes than my PHP and MySQL class I had for a full semester in my programming class! thank you for this and all of your other videos!!

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      LordTPrime2100 Thank you very much :) I did my best to cover most things you'd need.

  • @cocowmn
    @cocowmn 8 ปีที่แล้ว

    "I know this should be done in CSS, but I'm... I'm not doing that." Words to live and breathe by. Love it.

  • @MisterPaulClarke
    @MisterPaulClarke 9 ปีที่แล้ว

    Finally, someone who has not forgotten what it is like when you are new to aspects of computing. That's another way of saying "Computer Illiterate" or "Stupid, dumb, lacking in IQ, etc." Normally a face to face tutorial involves a lot of nodding, smiling, hoping the ground opens up under you before he asks you a question because despite the fact that when asked, you told him you understood but in reality, you haven't a bloody clue what he is talking about!
    I highly recommend this tutor. Whilst moving quickly, everything is broken down into easy small steps. It is just a matter of putting them all together. You will understand what can be done and if you are stuck, will quickly be able to go back to the tutorial to remind you that computers have a nasty habit of doing exactly what they are told! You will have the confidence to give it a go and when you successfully work out where you went wrong, will never forget it so your skills will come on in leaps and bounds.
    I am happy to say that I am in the process of re-opening my business following a long period of illness. In order to get it running, I need to make changes and additions to my web site. While I am a computer programmer, PHP and MYSQL are new to me. On permanent disability, I lack the funds needed to pay a programmer to do this. It would take me an hour if it was in a language I knew. I have tried different tutorials over the last few years and even spent a fortune on books but lost heart. After watching the video before this one, I gave it a go. It took me a few hours but it means that I can employ someone taking them off assistance and also get my dignity back as I can now earn money again paying taxes instead of living off the tax payer.
    Derek, from Maureen who now has a job and is now not going to lose her home, from the Irish tax payer, from my clients on the business directory who now get a better service, from one of the four charities picked by the client who enjoy 10% of the clients annual fee and especially from me - despite the fact that it is 05:30 and I intended getting an early night but got sucked into your contagious enthusiasm - THANK YOU!
    Paul :)

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      +Paul Clarke Thank you for taking the time to write such a nice message. It is very nice to hear that I'm helping people. I wish you all the best in life. I'm happy that I could help :)

  • @FilipBoev
    @FilipBoev 9 ปีที่แล้ว

    Derek, you are every computer engineers' highlight when it comes to stuff like this. Thanks a lot for this PHP-SQL blend, it's just what I was looking for!
    Cheers!

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      Filip Boev Thank you :) I'm glad I could help

  • @lilwarthog
    @lilwarthog 5 ปีที่แล้ว

    Oh man, came here just to learn php. Now ive learned HTML, and php, now imma go learn mysql and come back. Man you got it all!!!

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว +1

      Thank you :) I try to cover everything

  • @westgatefilms
    @westgatefilms 9 ปีที่แล้ว +17

    This guy is a good instructor

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว +5

      michaelguy Thank you :) I do my best.

    • @ShifterCZECH
      @ShifterCZECH 9 ปีที่แล้ว +1

      Derek Banas You videos are awesome. But sometimes you don't explain some data types/functions fully. Android tutorial 1. :(

  • @RobBaartwijk
    @RobBaartwijk 8 ปีที่แล้ว

    Another small thing: although it is always good to know how to manually add tables etcetera, I would recommend the MySql Workbench for this as it goes much faster once you get used to it. You also have a direct overview of the data in your tables without having to use SELECT every time.

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      +Rob Baartwijk The main reason I didn't use the Workbench is because I don't know what it may look like say 2 years from now. If people see even minor changes the normally stop watching the video. I don't expect the terminal to change at all may be even 5 or more years from now.

    • @RobBaartwijk
      @RobBaartwijk 8 ปีที่แล้ว

      +Derek Banas Ok, that figures. I have seen screenshots of the Workbench through the years though(while searching for info) and it seems to me that it doesn't really change much. Too many people use it I guess, small changes will probably generate many many complaints.

  • @ppmservers
    @ppmservers 9 ปีที่แล้ว

    From a TH-cam search I found your video. I found your information to be clear and to-the-point, very easy to follow along and understand. Great tutorial, I will be watching more, subscribed and thank you.

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว +1

      ppmservers Thank you :) I'm glad you liked it.

  • @nebihnebih1
    @nebihnebih1 10 ปีที่แล้ว

    You Derek teach smoothly with ease. You are a very good teacher.

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      Nebih Erzorlu Thank you for the compliment :)

  • @CodingMazaa
    @CodingMazaa 9 ปีที่แล้ว

    You are doing a great service to the internet community. This is as great a service as building an open source software from scratch. Keep up your good work!

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      kumropotashify Thank you for the nice compliment :) I'm doing my best

  • @thoughtyness
    @thoughtyness 8 ปีที่แล้ว +76

    You are a lifesaver!!!

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว +31

      I'm very happy that it helped :)

  • @ro2nie
    @ro2nie 10 ปีที่แล้ว

    Great video Derek.
    In 7:41 the last row should be:
    $row['birth_date'] . '';
    rather than:
    $row['birth_date'] . '';
    There is an extra dangling there with no content, that is not being closed with a relevant

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      Ronnie R. Winter Whoops sorry about that

  • @brandonjones2137
    @brandonjones2137 9 ปีที่แล้ว

    Awesome video. I like how you're showing how to apply the information instead of just spitting out textbook info. It makes it easier to digest. I'll definitely have to come back and view some more of your videos.

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      Brandon Jones Thank you :) I do my best to keep the videos interesting.

  • @ripsaw822
    @ripsaw822 9 ปีที่แล้ว

    Best tutorial i have ever seen on this, been wanting to learn how to do this for years but nobody has made it as clear to follow as you. What i want to know next is how to build dynamic queries. With the birth_date field for example i know on SQL how to make it show only records where the date is greater than a date i specify. How would i do that in PHP so there is a date picker and when you then click submit only records where the date is greater than what you selected would show.

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      David Lawton Thank you :) Probably the easiest way to do that is through JQuery using Ajax techniques. Here is a tutorial on that th-cam.com/video/O8C86NHhFZg/w-d-xo.html

  • @trickycommandfool
    @trickycommandfool 8 ปีที่แล้ว

    Derek,
    Just wanted to say thank you for all of your hard work. These tutorials have helped me with personal, academic and professional projects. I can tell you put a lot of thought and time into each one. Your method of instruction leads to high retention, conceptual and otherwise in an incredibly short time frame.
    In short they are the best I've come across in a long time.
    Thanks again man.
    ps: have you considered making any udemy.com courses I feel like they would sell extremely well. I've seen/bought courses that sell in the 5 figures volume wise that aren't close to your quality.

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว +1

      +Rdella Thank you for the very nice compliments :) I greatly appreciate them. Thank you for noticing that a lot more work goes into structuring these videos then it may seem. I spend a lot of time studying the psychological side of teaching. I like the idea of keeping the videos free. I just want to make enough money to pay for the equipment and books I need to make the videos. If I do that and help people I'm very happy.

  • @richardmichalski2595
    @richardmichalski2595 9 ปีที่แล้ว

    Hello,
    I am just figuring out how to put everything together (front-end/back-end) now. Just started using AMPPS and Sequel Pro. Just learning PHP. Already have some background with HTML, CSS, and SQL. Still need to become more familiar with JavaScript.
    At any rate, this tutorial is super helpful for comprehending how to connect the front-end to the back-end. Thank you for laying out such a thorough example and putting out the code to be copy/pasted as well!
    Cheers!
    Rick

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      ***** You're very welcome :) My goal is to teach everything you need.

  • @oshackingdev
    @oshackingdev 10 ปีที่แล้ว

    Thanks Derek !
    Your latest 3 videos for PHP and MySQL are so perfect . Very well explained.

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      Parker John Thank you for the nice compliment :) I'm glad you liked them

  • @AlphaFoxDelta
    @AlphaFoxDelta 6 ปีที่แล้ว

    Looking at the web-stack in an meta cognitive way you can think of the web-stack "trinary" as
    (x = html, y = css, z = javascript)
    but where z can equal "php" or "javascript" or others.
    To choose, just look at the situation and balance your trade-offs for the task.

  • @Nublus
    @Nublus 8 ปีที่แล้ว

    If you really wanna be sure of security then use prepared statements, but this works also.

  • @Fuzmonster59
    @Fuzmonster59 4 ปีที่แล้ว

    Dude, this is a really fucking huge piece of information to swallow. 20 minutes of coding with explanation alongside it doesn't help learning this. I got to 15 minutes when i realised; "I'm just looking on screen and repeating this, I'm not learning anything at all, let alone seeing what each bit of the code is doing."

  • @bogzbiny
    @bogzbiny 4 ปีที่แล้ว +4

    "Okay, let's watch some of this tutorial to determine whether it's good or not before I give it a like"
    50 seconds in, a Twin Peaks database appears.
    "Fine.... here's your like!"

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      That's funny :) Thank you

  • @pinkdiscomosh2766
    @pinkdiscomosh2766 7 ปีที่แล้ว

    I love the videos for quick emerson into a topic that I'm looking to get into. They're also short enough to get a quick refresher on something.

  • @DanteM-um6fe
    @DanteM-um6fe 4 ปีที่แล้ว

    (table header) tags do bold and cenered aligned automatically btw for HTML. amazing tutorial! just thought i'd share if you or anyone was curious

  • @Seraian1
    @Seraian1 8 ปีที่แล้ว

    I Simply cannot thank you enough. Your tutorials are the best on youtube

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      Thank you for the nice compliment :)

    • @Seraian1
      @Seraian1 8 ปีที่แล้ว

      Derek Banas Hey Derek Since You are familiar with php I just wanted to ask. I was told by my teacher to learn Laravel to Do a PHP application. But to what I can see using Core PHP is far easier for making an php application as Laravel Has it's own Syntax and Functions. Keeping in mind I learnt php a few days ago Laravel seems to be the longer road when developing a php application. So why would people use it for any reason other than security. Also are you planning on doing a Laravel Tutorial any time soon?

  • @DLiberator78
    @DLiberator78 9 ปีที่แล้ว

    Derek you are awesome. I love your tutorials. Very well explained and easy to follow. I am currently learning SQL and using MySQL and your tutorials have been really helpful. I am going to learn PHP next so that I can make a front-end for my database and this video is just awesome and really gives you a good idea how to go about it. Keep up the great tutorials. Greetings from the UK.

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      DLiberator78 Thank you for the compliment :) I'm very happy that I could help.

  • @saurabhswarnakar1947
    @saurabhswarnakar1947 7 ปีที่แล้ว

    Thank you so much!! Derek your videos are so helpful, you made the boring books contents into some interactive videos which makes me learn languages in no time.
    Stay blessed and keep up the good work...

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      Thank you :) I'm very happy that you like the videos. Many more are coming

  • @lucmulders5944
    @lucmulders5944 9 ปีที่แล้ว +2

    I have a test about this tomorrow, thank you a lot is sure helped me.
    Ur awesome!

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว +1

      Luc Mulders Thank you :) Best of luck on your test.

    • @dicejones3654
      @dicejones3654 4 ปีที่แล้ว

      How’d it go?

  • @MrSidMan
    @MrSidMan 8 ปีที่แล้ว

    Well, Hello Derek Banas! Previously I watched a big giant tutorial on PHP and CSS, now I'm back for more. I've got a lot to do, so lets get started!
    Theres are 2 very important keywords you can add to your search that will help you find the right tutorial for MANY developer tools and languages out there >> and those two words are: DEREK and BANAS
    I just realized I've been here before... mySQL is something I just can't seem to enjoy learning... but anyways .. Here Goes!

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      Thank you for the compliment :) Yes MySQL requires some time to get used to. Try playing around with data that interests you and that will make it more fun. There are numerous databases available for download. I enjoy playing around with this baseball database www.seanlahman.com/baseball-archive/statistics/

  • @MrSidMan
    @MrSidMan 9 ปีที่แล้ว

    Well Hop Skip AND Jump. Hot- Diggity dog.
    Love it. Absolutely love it.
    As a "dusted off" developer coming back to relearn a lot of this stuff, your crash courses are absolutely awesome when it comes to needing to cram as much info into a short amount of time, USEFUL when weekend study accidentally turns into weekend STUDDING.
    Chip Chop Cheerio!

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว +1

      +Sid P That's funny :) I'm very happy that you find them useful.

  • @leosaravia01
    @leosaravia01 7 ปีที่แล้ว +1

    Man... thanks... for real haha, can't bealive how fast I've learn PHP and Mysql haha, great tutorials for ppl looking to migrate to another lenguaje. keep it up!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      Thank you very much :)

  • @jhawks7594
    @jhawks7594 7 ปีที่แล้ว

    Derek, You deserve 1,000,000 subs dude!!!!!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      Thank you :) Maybe I'll get there some day

  • @buddyroach
    @buddyroach 8 ปีที่แล้ว +17

    can you make a tutorial on mysql security and the best ways to prevent mysql code injections?

  • @peeeeb
    @peeeeb 7 ปีที่แล้ว

    I've only skimmed this for the moment but I believe this will be really helpful for what I need when I get round to watching it properly :)

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      I hope it helps :)

  • @rabhinav
    @rabhinav 7 ปีที่แล้ว

    I love your style and the fluency is topnotch.

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      Thank you very much :)

  • @austenmorgan1326
    @austenmorgan1326 9 ปีที่แล้ว +1

    Great tutorials! Keep them coming, I really appreciate you putting in the time. THANKS!!!

  • @shmonikk
    @shmonikk 7 ปีที่แล้ว

    Just something one:
    BIG HUGE THANKS FOR THIS

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      I'm very happy that you liked it :)

  • @isaacjwrate
    @isaacjwrate 9 ปีที่แล้ว +1

    GREAT refresher course on a prepared statement, thank you!

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      Isaac Wrate Thank you :) You're very welcome

  • @singowl2833
    @singowl2833 8 ปีที่แล้ว +1

    It is very useful for me ,thanks a lot!

  • @prashantpatel1070
    @prashantpatel1070 10 ปีที่แล้ว +4

    Hey Derek,
    Great Tutorial as always. You won't believe this but I practically learn more programming from your youtube channel rarher than from the collge.One quick request can you post a quick video on "Image processing in Android Using OpenCv(Or any Other you think is better").That would be of great help to all of us.

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว +3

      Prashant Patel Thank you :) I'm very lucky to be able to help. I have added your request. Stanford used to have a very nice tutorial, but I can't find it right now. I'll get back into Android after my next video on web services

    • @prashantpatel1070
      @prashantpatel1070 10 ปีที่แล้ว

      Derek Banas Thank You Derek. Waiting for your other development videos.

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว +1

      Prashant Patel You're very welcome :) I hope to have another up this weekend

  • @sukhjinder619
    @sukhjinder619 10 ปีที่แล้ว

    Another awesome tutorial i finally understand how database works with PHP+MYSQL thanks a lot. hope you do similar tutorials on Andoird using database how to save info on phone similar to a note taking apps

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      Sonu JATT Thank you :) Yes I'm doing this so I can make web services which I will then use with Android. That is coming next

  • @nelsonbeimfohr1472
    @nelsonbeimfohr1472 7 ปีที่แล้ว

    Awesome Tutorial. Giving you credit for a school project!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you very much :)

  • @thisnyper
    @thisnyper 6 ปีที่แล้ว

    Please, correct me if I am wrong.
    Just to clarify something I hadn't understand. There are 3 ways to connect
    * MySQLi (object-oriented) -Ex. $conn = new mysqli($servername, $username, $password);
    * MySQLi (procedural) - Ex. $conn = mysqli_connect($servername, $username, $password);
    * PDO - Ex. $conn = new PDO("mysql:host=$servername;dbname=myDB", $username, $password);
    Derek used the MySQLi (procedural) and added @ to suppresses error messages.
    $conn = @mysqli_connect($servername, $username, $password);

  • @MahmoudElsousy
    @MahmoudElsousy 9 ปีที่แล้ว +4

    You are the only channel that I give like Before watching the video, Thank you very much, and keep making such fantastic tutorials.

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว +1

      Mahmoud Elsousy Thank you very much :) Many more videos are coming. I'm glad you like them.

  • @r_u_p_d9776
    @r_u_p_d9776 5 ปีที่แล้ว

    Basically you are a lifesaver, I subbed
    !!

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      Thank you :) I'm happy I could help

  • @varcodex45
    @varcodex45 6 ปีที่แล้ว

    Wonderful tutorials. Its amazing. Nice explanation. Thanks.

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      Thank you very much :)

  • @Yyyxk
    @Yyyxk 9 ปีที่แล้ว

    Would be cool if you did something with Searching for certain types of data. Anything on that you already have done Derek Banas

  • @windygo7560
    @windygo7560 4 ปีที่แล้ว

    Excellent tutorial. Thank you.

  • @JLibs123
    @JLibs123 7 ปีที่แล้ว

    super tutorial thank you so much Derek!!

  • @inmax2829
    @inmax2829 8 ปีที่แล้ว

    wow! very useful and helped me lot. thanks.

  • @harstar12345
    @harstar12345 8 ปีที่แล้ว

    The problem: I want some foreign keys of a few tables to be avaliable in one form as selectable options to input into another table. i.e. I want doctor_id, patient_id, and ward_id to be available to select when setting up an appointment. They’re set up as foreign keys and they work when I test them in SequelPro so I think it’s just a PHP and HTML thing to do.

  • @spidermoothero925
    @spidermoothero925 6 ปีที่แล้ว

    Maestro superb presentation👏👏👏

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว +1

      Thank you very much :)

  • @marcopierrefernandezburgos3116
    @marcopierrefernandezburgos3116 9 ปีที่แล้ว

    Thank you very much it helped me a lot!!

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      Marco Pierre Fernandez Burgos You're very welcome :)

  • @askmehowtodoit
    @askmehowtodoit 4 ปีที่แล้ว

    Which software are you are using, & can you explain same thing in windows?.

  • @PrimephotoStudio
    @PrimephotoStudio 6 ปีที่แล้ว

    Thank you for sharing this video with us, very helpful.

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      Thank you for checking out my video :)

  • @gregherrick4013
    @gregherrick4013 7 ปีที่แล้ว

    Hey Derek...Thanks a lot for a great overview.

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you very much :)

  • @ajoyanand
    @ajoyanand 9 ปีที่แล้ว

    Excellent. Much appreciated.

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      +Ajay Anand Thank you :)

  • @nric1735
    @nric1735 7 ปีที่แล้ว

    Thank You! Derek! real life saver!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you :) I'm glad I could help

  • @khalidQweder
    @khalidQweder 10 ปีที่แล้ว

    Thank you Sir.
    Excellent tutorial.

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      khalid Qweder You're very welcome :) Thank you

  • @thaqalain10
    @thaqalain10 10 ปีที่แล้ว

    If I haven't told you already, you're one from my most favourite youtubers :) Thanks for putting the code up online too!

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว +1

      thaqalain10 Thank you for taking the time to tell me :) Yes feel free to do anything you need with the code. It is completely free.

    • @thaqalain10
      @thaqalain10 10 ปีที่แล้ว

      Derek Banas Thanks, I really appreciate it! :)
      I forgot to mention, when I've used

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว +1

      thaqalain10 Sure if they are in the same directory that will work

    • @thaqalain10
      @thaqalain10 10 ปีที่แล้ว

      Awesome, thanks once again!

  • @ankit2056
    @ankit2056 7 ปีที่แล้ว

    You are the best!
    Love from INDIA

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      Love back to India :) Thank you

  • @samuelpimenta1942
    @samuelpimenta1942 6 ปีที่แล้ว

    Thanks for all the content of this channel! You're amazing!!!

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      Thank you very much :)

  • @Iamgercornholio
    @Iamgercornholio 9 ปีที่แล้ว

    Great tutorial! Exactly what I wanted to know

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      +Iamgercornholio Thank you :) I'm glad it helped.

  • @anggakharismaputra6106
    @anggakharismaputra6106 8 ปีที่แล้ว

    Man your tutorials are great, Thanks.
    Suggestion for next video: laravel

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      +Angga Kharisma Putra Thank you very much :) laravel is on the list

  • @anilkurmi5966
    @anilkurmi5966 10 ปีที่แล้ว

    Awesome. I just needed that.
    Thanks Derek. :)

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      Anil Kurmi You're very welcome :)

  • @Colstonewall
    @Colstonewall 9 ปีที่แล้ว

    Being a novice to PHP Derek, why did you use constants (3:54) with your database info instead of just putting them in variables? There must be some advantage to this, otherwise I doubt you'd do it this way. . .
    Great tutorials as always, Derek!

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      Chris Kavanagh Thank you :) I set them that way so that they can't be changed to access another users info

    • @Colstonewall
      @Colstonewall 9 ปีที่แล้ว

      Derek Banas
      I see. Security precaution.

  • @Anne-gx9ln
    @Anne-gx9ln 7 ปีที่แล้ว

    You are awesome, Derek Banas. :)

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you very much :) I do my best

  • @anurodhtripathi144
    @anurodhtripathi144 9 ปีที่แล้ว

    this is exactly for which i have search for

  • @luxicheng1054
    @luxicheng1054 8 ปีที่แล้ว

    Hi Derek,
    Awesome tutorial, just one quick question, how is making scripts in different folders improves the security for the website?

  • @mattingram9779
    @mattingram9779 5 ปีที่แล้ว

    As usual great stuff thank you for posting this and thank you for making it to the point.

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      Thank you :) I try to do my best

    • @mattingram9779
      @mattingram9779 5 ปีที่แล้ว

      @@derekbanas you should know I got my bachelors in computer science because of you videos. You exlained the concepts better than my professors

  • @TheBaliCompany
    @TheBaliCompany 9 ปีที่แล้ว

    nice video! learnt a lot from this

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      +TheBaliCompany Thank you :)

  • @matthewnotreal1118
    @matthewnotreal1118 8 ปีที่แล้ว

    Just spent the last 3 hours and finally got something in the database.

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว +1

      +Matthew NotReal Keep at it and it will get easier.

    • @whiskas-1
      @whiskas-1 8 ปีที่แล้ว

      +Matthew NotReal LOL, i'm also trying here, but i got this error:
      Parse error: syntax error, unexpected 'Integers' (T_STRING) in /home/website/public_html/studentadded.php on line 155

    • @matthewnotreal1118
      @matthewnotreal1118 8 ปีที่แล้ว

      +Mateus Pimentel are you passing the wrong data type / have an extra parameter?

  • @theodorequentinevelyn-rahr8911
    @theodorequentinevelyn-rahr8911 9 ปีที่แล้ว

    Great video, thank you very much for making it.

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      Theodore Quentin Evelyn- Rahr Thank you :) You're very welcome

  • @samvermeulen5495
    @samvermeulen5495 9 ปีที่แล้ว +5

    Hey Derek Banas I keep getting errors, these are the errors:
    Warning: mysqli_stmt_bind_param() expects parameter 1 to be mysqli_stmt, boolean given
    Warning: mysqli_stmt_execute() expects parameter 1 to be mysqli_stmt, boolean given
    Warning: mysqli_stmt_affected_rows() expects parameter 1 to be mysqli_stmt, boolean given
    Warning: mysqli_error() expects exactly 1 parameter, 0 given

    • @sleeplessdev7204
      @sleeplessdev7204 7 ปีที่แล้ว +4

      This comment is very old, but for posterity,.. I had this problem because I forgot a closing parenthesis to the end of my $query statement, just before the closing quote.

  • @SeanKeenan242
    @SeanKeenan242 9 ปีที่แล้ว

    I've heard that there are much better alternatives to PHP that are easier to use, more efficient, and more modern. What's your opinion on this?

  • @xingyubian1441
    @xingyubian1441 8 ปีที่แล้ว

    Hi Derek can you please cover a video on PHP5 and mysqli connection and concepts?

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      I'll see what I can do

  • @alhadidi1
    @alhadidi1 8 ปีที่แล้ว

    Thanks Derek :)

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      +alhadidi1 Your welcome :)

  • @hopefulrecovery1553
    @hopefulrecovery1553 9 ปีที่แล้ว

    Awesome tutorial, good job!

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว +1

      Andrej Batarilo Thank you :)

  • @lilwarthog
    @lilwarthog 5 ปีที่แล้ว +1

    Question for ya. When i go to host this online, what do i set the db_host to? And what other things do I have to set to make it live. Thanks derek!! Btw bout 3 or 4 hrs of watching your video, and trying stuff on my own. And much trial and error. I have a login and registration page, and adding stuff into mysql!!

  • @TheMarketTimer
    @TheMarketTimer 9 ปีที่แล้ว

    Good lesson. Thanks!

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      Your very welcome

  • @yakupdogan6279
    @yakupdogan6279 4 ปีที่แล้ว

    Thanks , very fluently explained, only what needs for the purpose just given. I really appreciate your help. I don’t want to miss your other video therefore just subscribe your channel👍.

  • @gerardsegismundo8931
    @gerardsegismundo8931 7 ปีที่แล้ว

    nice tutorial, but can you please create another one for an updated version? thanks!

  • @Noflexing100
    @Noflexing100 8 ปีที่แล้ว

    Great job! Thanks.

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      +guscles25 Thank you :)

  • @hakimben4244
    @hakimben4244 10 ปีที่แล้ว

    thankx derek for ur help.
    is a great tutorial

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      Hakim BEN You're very welcome :) Thank you

  • @abdelouery4114
    @abdelouery4114 10 ปีที่แล้ว

    Very Useful, Thanks :)

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      Abdel Ouery Thank you :)

  • @winking962
    @winking962 7 ปีที่แล้ว

    very helpful ,thx man!

  • @I_am_pradeep
    @I_am_pradeep 6 ปีที่แล้ว

    BEST TUTORIAL...

  • @ypn.official
    @ypn.official 6 ปีที่แล้ว

    Is there any way to connect the php page to Microsoft Access database or Libre Office Base database??
    Coz security isn't my priority but lightweight multifunctional software are.
    Once again thanks for your tutorial. Can wait to try it out. Can't imagine youtube without you.

  • @sinancetinkaya
    @sinancetinkaya 8 ปีที่แล้ว +23

    I don't know why some developers write code like this:
    if($affected_rows == 1){
    echo 'Student Entered.';
    mysqli_stmt_close($stmt);
    mysqli_close($dbc);
    } else {
    echo 'Error Occurred. ';
    mysqli_error($dbc);
    mysqli_stmt_close($stmt);
    mysqli_close($dbc);
    }
    instead of this:
    if($affected_rows == 1){
    echo 'Student Entered.';
    } else {
    echo 'Error Occurred. ';
    mysqli_error($dbc);
    }
    mysqli_stmt_close($stmt);
    mysqli_close($dbc);

    • @fatimaezzahrararhibou2169
      @fatimaezzahrararhibou2169 8 ปีที่แล้ว +1

      I thought of the same thing !

    • @motionfiction9353
      @motionfiction9353 7 ปีที่แล้ว

      Yeah! You'r Right

    • @jwoolfe1445
      @jwoolfe1445 7 ปีที่แล้ว +1

      defnitley DRYer

    • @neckudart272
      @neckudart272 7 ปีที่แล้ว +14

      well when you try to explain something minimizing code is not a priority .

    • @othmaneboumediane7807
      @othmaneboumediane7807 7 ปีที่แล้ว +1

      It is easy I'll explain it to you with an example
      If ($mark>=10){
      a=1;
      }
      if($a == 1){
      echo 'Congratulation';
      }

  • @Kvorkadys
    @Kvorkadys 7 ปีที่แล้ว

    Nice man! Thanks a lot!

  • @masum0188
    @masum0188 9 ปีที่แล้ว

    Thank you so much, want more on mysql

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      Masum Khulna You're very welcome :) I'll be getting more into MySQL with my Rails and NodeJS tutorials.

    • @armaandhanji2112
      @armaandhanji2112 9 ปีที่แล้ว

      Derek Banas really really looking forward to NodeJS. waiting for them from you!

  • @goldentriquetra3927
    @goldentriquetra3927 10 ปีที่แล้ว

    Hey man i love your videos! I am gonna do an android app and i will follow your tutorials, but i really want to ask you something...
    I'm gonna have to choose my path in life and so i'm thinking of something connected to technology...
    What did you study?
    What jobs can you fit in with your knowledge?
    And btw, i heard you have an eye infection and i wish you get better soon ;)

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      Alexandre Pinto Thank you :) When I started out programming was an unknown profession. I have been doing this for 30 years. I basically bounced around working for software, finance and even marketing companies. It wasn't until the last 10 years that I started making shopping carts and now Android apps. I always wanted to help regular small companies and that is what I have been doing for the last decade.
      I have basically been learning new things for the last 30 years. My core languages are JavaScript, PHP, C++ and Java. I can do pretty much anything with them. I think adding sales skills has dramatically helped me more then anything. I learned how to get my way and become a better leader by increasing my ability to negotiate. I hope that helps. Hopefully the eye gets better soon so I can make more videos.

    • @goldentriquetra3927
      @goldentriquetra3927 10 ปีที่แล้ว

      Derek Banas well ty very much for replying, that makes me really happy... Hehehe but i think you should rest your eye ;)
      Hope you get better soon ;)
      Btw, is there a list of apps created with your videos' help? I would love to see what i can do with your tutorials hehehe
      Cuz i am really looking forward to make an app ;) (with the help of your tutorials, of course ;) )
      Stay awesome ;)

  • @navymiguelito
    @navymiguelito 8 ปีที่แล้ว

    Aloha Derek! Love your Red Bull-paced tutorials. Do you have your code available on Github, etc.?

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      Aloha :) Thank you. I have links in the descriptions for all of my videos. I have it on my website, but everything is 100% free.

  • @ianmiddel2898
    @ianmiddel2898 6 ปีที่แล้ว

    Do you have any tutorials on these extra security measures you mention?

  • @jlivanramirez
    @jlivanramirez 8 ปีที่แล้ว

    Maybe I missed something but what exactly is the PHP command to establishes the connection between PHP and MySQL? In Minute 4:30 you define variable 'dbc ' and you use the 'mysqli_connect' function. Is that a native PHP function that establishes connections to any DB? What if my DB is not MySQL but something else, will this still work? Thank you!

  • @handokowerento6640
    @handokowerento6640 9 ปีที่แล้ว +1

    Good afternoon sir, Define ('DB_user', 'Studentweb'),
    my question are, what are DB_user stands for? and the student web stand for?
    is it the database that you created?

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว +1

      handoko werento DB_user is the userid you want to use to connect to the database

    • @handokowerento6640
      @handokowerento6640 9 ปีที่แล้ว

      ah okay,
      thanks sir, thanks for uploading this video.
      keep up the good work!

  • @DanielK48
    @DanielK48 7 ปีที่แล้ว

    Awesome videos !!!! Keep them coming ! :)

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +1

      +Daniel K thank you😃