13: Our First PHP Project! | Procedural PHP Tutorial For Beginners | PHP Tutorial | mmtuts

Поделиться
HTML-код
  • Опубликовано: 25 авг 2020
  • In this PHP tutorial video we will create a small project to help you understand how we handle data submitted by a user on 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 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: / lesson-material-42361704

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

  • @leopoldomedeiros8420
    @leopoldomedeiros8420 3 года назад +59

    That's why I love your videos, you explain the "whys" instead of the "whats". 99% of tutorials on RUclips are only coding along without any explanation, then we watch it feeling frustrated in the end cause we don't learn anything, we just copy and paste.

    • @m.hassan8142
      @m.hassan8142 2 года назад

      agreee with your point
      what is the ____ concept is on google search not why
      ??

  • @kaosfang6907
    @kaosfang6907 3 года назад +15

    Just started learning php yesterday and i gotta say ive never learned anything as fast as im learning php, super helpful content man! Thank you so much!

  • @bobbyit5238
    @bobbyit5238 3 года назад +2

    Hey my name is Bobby and after watching your videos for months I’ve become a Zend Certified PHP Software Engineer! Thanks a lot for great amazing content!

  • @imadel3647
    @imadel3647 3 года назад +1

    Daniel please please continue you're an amazing person, i have learned so many things from u, we need more people like you. Don't stop

  • @roshankc6044
    @roshankc6044 3 года назад +1

    Bro u helped me a lot to understand php whole login form i build and now e-commerce just with ur concept (contact ,comments,login,password reset password,payment method and so on) that's incredible piece i have build so far 😍😍😍 i really happy that being part of ur channel

  • @BviperR
    @BviperR 3 года назад +4

    Hey Dani
    Your videos are great man! Thanks a lot.
    I started lots of programming courses and never keep on going. But yours are the best one! Please, keep making more videos!

  • @mrmotion7942
    @mrmotion7942 3 года назад +13

    Great vid. I loved it when you coded along rather than just going though a slide show though. Thanks :D

  • @_wekesar_6639
    @_wekesar_6639 3 года назад +1

    Dani is the best. You taught me a lot in your lessons and now I build dynamic websites.

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

    thank you so much for your videos. You break these down step-by-step and answer every question I have so far.

  • @subish20me
    @subish20me 2 года назад +6

    pressing the submit button gives me the php code what am i doing wrong

  • @paulsinyard4518
    @paulsinyard4518 2 года назад +6

    Excellent video, but although you do mention via a popup that you require the

  • @ranitsaha7826
    @ranitsaha7826 3 года назад +1

    I always waited for this video from you dude, other channels are less interactive, and yes, some of them sucks. A lot.
    And this video was great. Plz do upload the next part soon. 😊😊

  • @davescorneroftheworld1147
    @davescorneroftheworld1147 3 года назад +2

    Again, you are a GREAT instructor. I wish I could hit the like button five or six times!
    Your NEW gaming stuff... well, I watch it to support you but I am 69 years old and gaming is not My thing.

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

    very good format, really like the simple stuff.. you can really build from this.

  • @sheltoncastelino8889
    @sheltoncastelino8889 3 года назад +1

    Awesome explanation! Loved it!!!

  • @madsa2332
    @madsa2332 3 года назад +1

    Great videos brother! It seems somehow i cant see the two last videos from this course. I think the video number 14 and video number 15 somehow got removed by youtube. Can you please reupload them. I would preciate that 🙏🏼🙏🏼

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

    hello sir,first of all thank you so much for this tutorial,could you please tell me if I can watch your ancient tuto even if it's not updated yet because I really like how you teach PHP

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

    Hey Daniel, been a follower for years, love your content - it’s taught me how to code. Furthermore, are you fluent in react? It’s needed in jobs today. I love your teaching style and wanted to see if you would make a tutorial if you knew react well.

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

    Awesome tutorial Dani!!!! Thanks!

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

    Excellent video. Learning a lot from you. Thank you .

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

    Hi Dani. Your videos are excellent. You have a playlist PHP Tutorials with 65 videos in it. Are you going to redo all those videos in this updated playlist? Thanks

  • @Stoney_Eagle
    @Stoney_Eagle 3 года назад +1

    You've become a true coder haha, no more typing just magic appearance 😂😂
    PHP is so much easier than C#.
    I whish there where some good explanatory tutorials for winforms 😉😉🙏

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

    You should tell more about "pure coincidence". Does this mean I could use different names for passing values?

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

    Thanks so much for this course!

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

    It would be awesome if you start a series of tutorials about PHP Frameworks

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

    I created a blog system containing about 10 fields for the image upload. When I insert like 5 images and uploaded the blog to the web, the 5 empty fields will show the little icon when the image is not uploaded. Is there any way to hide this little icon if the image field was empty and it's empty in the database? Or i should every time change this add post codes? PLZ HELP!

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

    currently learning this in my bootcamp

  • @dilipdey5632
    @dilipdey5632 3 года назад +2

    Sir, I loved your videos.But,I have a problem in videos .That is gallery videos its php
    version 7.4.6 and it shows error parameter in php
    version 7.4.8

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

    thank you men I'm from Iran and Id liked this php learn

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

    Could you please make an video on Dynamic Select box, thank you!

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

    great video my dude. blessings to you

  • @juniorpirela6885
    @juniorpirela6885 3 года назад +2

    I love this tutorials, can you explain send data with ajax please??

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

    Bro, thanks very much for the tut...

  • @RICO_2jz
    @RICO_2jz 3 года назад +1

    Hello!
    Can you make vid to make website html in mobile plz
    Because i have prob with css
    Its not connecting? Why? Plz make vid

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

    This is great example thank you.

  • @geofsaviationhub6979
    @geofsaviationhub6979 3 года назад +1

    Hello Dani can you make some more vids on MySQL and PHP projects?

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

    im not getting the value printed in the page, are all of these codes in one file or two files? functions and index?

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

    Hi guys, can u help me pls? Whenever I'm working with xampp, after turning off the computer the file does not work until I create a new one and copying the exact same code into it. Do you have the same problem?
    Thanks for help and have a nice day!

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

    Excellent video! I learned so much. I used to always wonder when creating HTML and CSS what in the world is this name="null" used for? Now I know thanks.

  • @sujalkhatiwada6535
    @sujalkhatiwada6535 3 года назад +1

    Please make a real world OOP based project. it will really help, if possible make using MVC, because there are not so much such tutorials which gives real life experience in mvc by doing real life project.

  • @creativeakshara8438
    @creativeakshara8438 3 года назад +2

    Thanks 😊 For this

  • @metadance3028
    @metadance3028 3 года назад +1

    I love to learn ReactJS :3 i hope you teach ReactJS :>>

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

    so if *and if* i finish writing the code but instead of getting the value of the added/subtracted number i get none a blank white screen with no text whatsoever *how should i fix it cuz i copied the whole code in the screen and put the folder in the htdocs folder* help! TwT

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

    4:58 "label choose operation", where did that go? Shouldnt it suppose to be one of the options or like a placeholder for oper?
    Also instead of getting white space, im getting error undefined value messages when values are just empty, any advice? thx

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

      The label tag is attached to the input so that when clicked on it focuses on that input (mainly mobile related). It is also for screen reader usability etc. Kinda pointless in this particular situation. In order to get a placeholder in a select you can use this:
      Placeholder goes here.

  • @processorbot8761
    @processorbot8761 3 года назад +1

    great video !!

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

    Hi Dani, I follow your instructions step by step, but I can’t compile the results successful. Finally I found that I need put those super global $_GET inside the functions to compile, so weird….

  • @wibudesu205
    @wibudesu205 3 года назад +1

    Can you make a laravel tutorial?

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

    1. is it essential for php developer to know wordpress and other other cms?
    2. how often does php developer need to adjust apache server?

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

    Why did error acured when i first write case and then it sid that problem is unexpected cse

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

    Hi sir I want ask how to develop a website using two different languages like php and c# or other lang Im just so curious

  • @Pradeepkarn
    @Pradeepkarn 3 года назад +1

    Hw to make unique slugify url in php

  • @evivox
    @evivox 3 года назад +2

    Instead of you could have written , as the user wouldn´t be able to type strings into those input fields.

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

    thank you so much I made my own calculator

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

    How can I develope oop based monthly income/outgoing system in web develpmnt

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

    Hi, where is the number 14.. I could not find it..The only one I have now is number 15 (create a php Calculator)

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

    Amazing vid!!

  • @ahangaraadil
    @ahangaraadil 3 года назад +1

    Simple but dope. 👻

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

    Can u please make a tutorial about. Making a pdf and send it to email using php

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

    I respect you!!!!!!

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

    How can I create login system for monthly income without form in oop php

  • @by6321
    @by6321 3 года назад +1

    @Dani Please make a Codeigniter 4 tutorials.

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

    thanks a lot.

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

    Amazing video

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

    what kind of programming language are you using? thank you. i'm learning a lot from you. I'm a third year student taking Information Technology course. And your tutorials are helping me a lot specially now that we are learning from online classes.

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

      It literally says it in the title, PHP

  • @geneee
    @geneee 3 года назад +2

    PHP MVC Project please. Many companies uses the MVC framework, and the procedural is really not that efficient.

  • @manuelsaturday8559
    @manuelsaturday8559 3 года назад +1

    Yeeeesss. Comeback

  • @griep5735
    @griep5735 3 года назад +1

    I'm a little confuced... The code works for the most part, but it wont actually output the result whenever I say:
    echo "Value: " . myCalc($num01, $oper, $num02);
    It only actually output the result when I say:
    echo myCalc($num01, $oper, $num02);
    Did I get the string-operator wrong? I managed to find the problem, but don't know how to fix it...

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

      similar problem, what do i do?

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

    Please sir....
    How to make payment on a website using PHP

  • @messismo10
    @messismo10 3 года назад +1

    In PHP the database connetion must be a singleton?, sorry for my english.

    • @Ganamabunta08
      @Ganamabunta08 3 года назад +1

      "Must"? No.
      It's better for it to be , though. As opening up a DB connection is resource heavy.

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

      @@Ganamabunta08 Thanks bro.

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

    cool video)

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

    how to tell that submit button will shows the php code, i mean , what if there is 2 button on the form tag?

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

      You wouldn’t have more than one button per submit. 🙂 It would have no purpose.

  • @muhammadabbagana3067
    @muhammadabbagana3067 3 года назад +9

    I think is time to start a PHP framework either laravel or Codeigniter

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

    Whta if submit nothing ?

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

    throught this example I found it extremely similar to javascript syntax

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

    Followed code for code, didnt work it is saying it Undefined array key "oper" "num01 and 2"

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

      same, did u figure it out?

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

    I just one to add something, please make sure you are using htmlspecialchars or htmlentities as he did not say anything about that. Anyway great video

    • @Dani_Krossing
      @Dani_Krossing  3 года назад +1

      Thank you :) You are right, htmlspecialchars() would be a required addition to my little exercise here to prevent a user from injecting code into the website. Should have included that as well.

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

    can't find #14

  • @Aymaan_Mulla_TECH
    @Aymaan_Mulla_TECH 3 года назад +1

    Bro when are u gonna update the old php playlist

    • @Dani_Krossing
      @Dani_Krossing  3 года назад +1

      That's what I'm doing right now 😅 literally with this video

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

      @@Dani_Krossing haha

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

      @@Dani_Krossing thanks a lot for the feedback sorry for disturbing u

    • @Dani_Krossing
      @Dani_Krossing  3 года назад +1

      @@Aymaan_Mulla_TECH No problem ;) and no need to apologize for asking questions :) I'm more than happy to answer

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

    you have a little mistake, you misplaced the label tag, it should be outside the select tag and you put it inside, regards!

  • @markcremer3954
    @markcremer3954 3 года назад +1

    Realy like you vid's but at 6:57 you say at the very first you create a function.....so my code wasn't working checked it twice all ok so I tried te add at the very first its workink now... I thought is only within HTML-code.

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

      No. Whenever you write php code, it should be inside tag. Otherwise php code won't work.

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

      Same here until I added the

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

      Always have at least an opening tag, however if, you have a .php file with PURELY PHP code, you should start with an opening tag, it can cause your PHP code to not run and throw out errors

  • @0x1stvan
    @0x1stvan 3 года назад

    You are worked in production with procedural php?

  • @yasironvideo
    @yasironvideo 10 месяцев назад

    No where I see "Choose operation!" on the html page, why did we write it?

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

      5:34

    • @yasironvideo
      @yasironvideo 10 месяцев назад

      @@Dani_Krossing Thank you so much for your swift response, however I don't see the label "Choose operation!" in the form (run time)

  • @sadafrad
    @sadafrad 3 года назад +1

    Hi i did exactly the same but the result was the content of function.php file !! Why? Would you please guide me?🙏🏻

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

      You need to have this running on a live server or localhost server. PHP is serverside code and needs to run on a server. You cannot just double click a .php file and open it in your browser to make it work like you could a .html file

    • @YK-dx4ux
      @YK-dx4ux 10 дней назад

      You need to have local server environment and you need to open your php file with the proper tags ( start with )

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

    Pls make a video for security and making a hack free website

  • @JacksonMarshal
    @JacksonMarshal 3 года назад +1

    Luv u men 🌹

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

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

    Thank you Dani! I sent you an email.

  • @I1Ido.
    @I1Ido. Год назад +1

    what is dir="ltr"????

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

      It's just a indicator to where the text should align to, since some countries write text from "right to left", instead of "left to right". 🙂 You can just leave it out, and it will default to "left to right".

    • @I1Ido.
      @I1Ido. Год назад +1

      @@Dani_Krossing ok! i found this very helpful.

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

    thank you code mr beast

  • @davo._.4447
    @davo._.4447 3 года назад

    Notice: Undefined variable: num02 in C:\xampp\htdocs\my website\functions.php on line 22 this shows up everytime i run the programme on local host any help?

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

      Spelling or syntax error most likely

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

    I have just watched #13, where is #14?

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

      If there are no more videos in the playlist, this is the last one.

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

      ​@@Dani_Krossing Confused after having found another similar PHP course of yours ruclips.net/video/mXdpCRgR-xE/видео.html ...

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

    Hi everyone I would like to ask for some advice from this community of web developers about the problem that I am facing right now as I am personally not an IT person. I hired a web developer to develop an e-commerce website for me. Yesterday I came to know that the PHP version that was used to creat the website was very old, it’s PHP 5.6. A friend of mine who a understand a thing or two about the web development, said that this web developer had you, in an ugly way thoroughly. What he meant is that the version is to old. And it’s practically useless. He said it’s impossible to upgrade it or do anything about it. He said the web developer sold me a useless website. If it’s not a problem for you guys, could you please enlighten me as how bad is my situation here, and if my friend is right. Because, though my friend understanding something about web developing but he is not a professional.

    • @YK-dx4ux
      @YK-dx4ux 10 дней назад

      Contact your hosting party, they will be able to advise you. If you upgrade your PHP you can always revert it (though it might be difficult with v5.6)

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

    DOOD!

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

    I cant be the only one that thinks this but Daniel low-key looks like Elon Musk! Haha Dope!