22 | INSERT INTO Database Using PHP From Your Website! | 2023 | Learn PHP Full Course for Beginners

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

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

  • @OpenBoxReviewss
    @OpenBoxReviewss ปีที่แล้ว +21

    A year ago I was dreaming about making websites and today here I am building one, thank you, your help is much appreciated.

  • @rodgence9641
    @rodgence9641 ปีที่แล้ว +43

    New look Dan 😂 Thanks for your premium courses Africa is watching

  • @KelvinOmoluyi
    @KelvinOmoluyi หลายเดือนก่อน +2

    Man, the simplicity of this video courses makes them pure joy! Thanks :)

  • @Gupatik
    @Gupatik 10 หลายเดือนก่อน +5

    Okay, now this channel is a true real gem for me, it has everything. Maybe it will affect the algorithm a little bit, but that's not all the point of this, the true thing that matters is the lives you have changed with this golden information.

  • @akashgola2153
    @akashgola2153 8 หลายเดือนก่อน +4

    Like everyone said in the comments, keeeping it simple is the best , also there are viewers from other countries who r not native english speakers hence i believe keeping the english as simple as possible is definitely the way to go . Great Vid.

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

    Thank you krossing, you have helped me complete a final year php project with these tutorials. straight foward and easy to learn, I couldn't have asked for more. Be blessed

  • @neilakrika9964
    @neilakrika9964 7 หลายเดือนก่อน +2

    thank you for your efforts , better than uni lectures

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

    I've been watching your videos for a few years now and they are easily some of the best out there in terms of explantation and clarity , keep up the great work!

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

    Thanks for simple and clear english, i almost understood everything without subtitle, a lot of loves from Egypt ❤

  • @MessianicJudaism
    @MessianicJudaism ปีที่แล้ว +41

    I may have to cut my hair, too. I am dealing with cancer. I pray you are not.
    Thank you for your lessons. It's greatly appreciated.

    • @Dani_Krossing
      @Dani_Krossing  ปีที่แล้ว +28

      I'm so sorry to hear that Kelly. In my case I'm dealing with psoriasis, so it isn't nearly as serious as yours. I had to cut my hair in order to give the psoriasis a chance to calm down, since it gets worse over the summer heat.

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

      I hope you all get well soon

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

      try eating 2 cups of oats with hot water and banana for a week and see what happends. Itworked for me on head skin issues. I hope you all get well soon.

    • @DharmYogi
      @DharmYogi 7 หลายเดือนก่อน

      There is a lot of research now which indicates that you should avoid sugar and carbs to fight against cancer. Also meditate and do yog(a). stay strong

  • @TheAllMarket
    @TheAllMarket 10 หลายเดือนก่อน +4

    Your videos are absolutely the best! You go above and beyond other instructors. You not only explain things perfectly, but you show us all that we need to know about the code and ways you can implant it into our own. Your series is the golden tutorial for anybody learning PHP and even things most videos don't teach such as PHP security which is a must for anybody learning to make their own website using PHP.

    • @TheAllMarket
      @TheAllMarket 10 หลายเดือนก่อน

      Your channel is the one I have been looking for. You have earned one more loyal subscriber.

  • @45Marki45
    @45Marki45 ปีที่แล้ว +5

    Man, you are fantastic. I am developing a CRM with freelance developers. But things got expensive and quite slow (we are 10 months into the project). To speed things up I decided to learn web programming and create certain portions of the CRM. I did quite well with HTML, CSS and JavaScript, but when i got to the database part I got stuck until I found your videos. Big thank you!

  • @mettysingictsolutions9555
    @mettysingictsolutions9555 ปีที่แล้ว +20

    You're an amazing tutor. I appreciate your sacrifice of giving us this full packaged php content.

  • @EddieJack-e6u
    @EddieJack-e6u ปีที่แล้ว +5

    You have been so clear in your explanation with every single code that you typed

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

    Great series of videos. I hope everything is okay with your health. Stay strong ❤

  • @shakeitoff1000
    @shakeitoff1000 5 หลายเดือนก่อน +2

    Dani, I've been following your videos and I love them. You present information clearly, your voice is nice to listen to and it's easy to move around/skip parts I may already know. Thank you for offering these videos for free, it means a lot.

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

    Kross, you are really saving life with this tutorial. Thanks.

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

    Your the best teacher i'ved ever watched! keep up Sir

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

    Really awesome series, I followed your last one and now I'm following this one and the slight changes to the code are really helping me understand the differences and what impacts what. Looking forward to more

  • @220bytes
    @220bytes 4 หลายเดือนก่อน

    1 year down the line and we're still enjoying your videos. Thanks for the work.

  • @DharmYogi
    @DharmYogi 7 หลายเดือนก่อน

    Dani Thank you for your lessons. I learned a lot. I just created my sample form and now I will work on creating the real one. I manage to get the database connection part working and loading the data. So I am quiet happy as to how far I got. Thanks again.

  • @theanonymous41
    @theanonymous41 9 หลายเดือนก่อน +3

    great tutorial. Hope you're good man

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

    Great one Dani, keep it up

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

    i don't have nothing to said thank you 😊😊 your contend is other level

  • @Scoot-f4f
    @Scoot-f4f ปีที่แล้ว +3

    Thank you for this tutorial!

  • @tejaspathak933
    @tejaspathak933 8 หลายเดือนก่อน +1

    Thanks a lot Dani!Awesome Tutorial series :) Please take care of your health!

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

    Thanks a lot Dani for the great tutorials and sharing your knowledge. ❤

    • @bassemkhozam
      @bassemkhozam ปีที่แล้ว

      BTW, I love your new haircut 💇‍♂️

  • @janvitek5487
    @janvitek5487 10 หลายเดือนก่อน +2

    awesome tutorial I have yet to see your other videos but POD caused me quite a headache since I am working with docker containers as my test environment so I had to improvise for the mysqli connection would be great to have that option as video 22.1 with the bells and whistles you have for this video
    Overall thank you very much

  • @NkanyeziShenge
    @NkanyeziShenge 7 หลายเดือนก่อน +2

    You are so cool bro your lessons are so informative, great foundation

  • @AdelinBonheur
    @AdelinBonheur ปีที่แล้ว

    You're my ROLE MODEL, I wish you success in everything!

  • @michaelsunday6860
    @michaelsunday6860 2 หลายเดือนก่อน

    You are a genius!!! Thanks much

  • @delta13dek
    @delta13dek 8 หลายเดือนก่อน +10

    You mentioned you cut your hair for health reasons, I hope you are doing well today!

    • @Dani_Krossing
      @Dani_Krossing  8 หลายเดือนก่อน +7

      I am thanks 🙂 the hair is fully grown out again

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

    whenever i see an ad in your video i click them because, this way i give you something, nobody have taught me PHP in your way.

  • @EL_WAFI_CHERKAOUI
    @EL_WAFI_CHERKAOUI 7 หลายเดือนก่อน +1

    so prepared statements enable the code to separate between data inputs and the actual sql code to prevent SQL injunction , thank you

  • @sylviaho9793
    @sylviaho9793 25 วันที่ผ่านมา

    Thank you for the clear and precise step-by-step tutorial on database using php. I'm able to create and host my business database. However, i don't know how to convert the localhost llink to my company website url, do you have a video on that?

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

    haircut! but also, great series so far - thanks for all your hard work and clear explanations.

  • @NANOCEDRICLAWRENZOD
    @NANOCEDRICLAWRENZOD 2 หลายเดือนก่อน

    Thank you!

  • @Zahra-j7t8k
    @Zahra-j7t8k 8 หลายเดือนก่อน

    Thank you, very good job

  • @wasdaletimelapse7658
    @wasdaletimelapse7658 8 หลายเดือนก่อน

    Hi Dani, I have just come across your excellent video whilst searching for a solution to passing data from an ESP32 sensor into an SQL database. I have very limited knowledge of this kind of subject but I am able to follow your instructions very easily but I would like to know if I can use this method to pass the data instead of from a web form but from an ESP32 sensor. I have already tried several solutions but I keep getting stuck at the point of passing the sensor data to the .php file. Again, due to my complete lack of knowledge and understanding of this subject I just seem to be going around in circles. I would really appreciate any pointers you could give me. I will try and follow your PHP full course videos to help me better understand. Thanks in advance.

  • @karimbedreddine8967
    @karimbedreddine8967 6 หลายเดือนก่อน

    this was a starting point to me coding using PHP. i am not sure if you have courses on Udemy.

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

    0:20, Bro please take care of your health, im praying from here.

  • @batataleal
    @batataleal 5 หลายเดือนก่อน

    Nice tutorial. I'm following all classes since the number one. This is the most confusing to me, I think it's due the concept of object in PHP not been explained yet. Even dough, great course. Hope you got your hair back at this point.

    • @Dani_Krossing
      @Dani_Krossing  5 หลายเดือนก่อน +1

      My hair is yet again long and full 😄😉 and yes in a few episodes we get into using it together with your PHP code, which will make it make more sense.

  • @Stuckzxc
    @Stuckzxc ปีที่แล้ว

    Waiting for next episode!!

  • @joekerr7643
    @joekerr7643 หลายเดือนก่อน

    i love your videos. i suggest when you're discussing something be direct and avoid inserting things that will not be included in the topic as it makes the subject messy. if you will use a certain method, don't discuss other methods if you will not use it.

  • @editz6697
    @editz6697 5 หลายเดือนก่อน

    get well soon dear

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

    that new look tho!

  • @jasonramirez6182
    @jasonramirez6182 6 หลายเดือนก่อน

    bindParam vs bindValues what are the diff of these two sir?

  • @TechTheNoob
    @TechTheNoob ปีที่แล้ว

    You're like the Mr Beast of PHP MySQL tutorials. I'm now rich with knowledge now, thanks.

  • @syedmubasharshah676
    @syedmubasharshah676 25 วันที่ผ่านมา +1

    my signe up button is not working

    • @howto-easy
      @howto-easy 4 วันที่ผ่านมา

      did you find a fix for this?

  • @simsolchannel
    @simsolchannel ปีที่แล้ว

    Hello teacher, I would like to ask a question, I have seen some websites use 2D website ... What should we do? Thank you very much teacher ...

  • @paulhauer1598
    @paulhauer1598 หลายเดือนก่อน

    Your series has been very helpful and informative. Thank you for putting it together. I have had an issue with this last video. No matter where I access the the formhandler.inc.php file whether in the includes folder or the project folder i am getting a "Forbidden You don't have permission to access this resource. Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 Server at localhost Port 80" error. Any ideas?

  • @ejiedaninspirations6426
    @ejiedaninspirations6426 5 หลายเดือนก่อน

    please I have a question. I am looking into your tutorials. talking about prepared statement, it is used so that a code will not be injected into the data base. but subsequently, when the same data is grabbed from the code and inserted in the data base, if there is a code there that can destroy the data base, wont it still work? please explain further. Thank you

  • @Romanscii
    @Romanscii 26 วันที่ผ่านมา

    How would that work on an E-Mail form for example?

  • @LiezelHebbert
    @LiezelHebbert 7 หลายเดือนก่อน

    Hi Dani how many rows can php display?? And can you make it more than 500?

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

    excellent lesson Dani, sorry to see your hair gone. Oh BTW query in English is said "kwee-ree" when spelt phonetically. Hope you don't mind as your English is way, way better than my Danish.

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

      Thank you, yes the hair is a shame, but at least it has gotten a chance to calm my psoriasis a bit. 🙂 and thanks for the tip on query. The “kwe” is hard for Scandinavians to pronounce, same with “thr” hehe. I’ll practice it and see if I manage to say “query” without tying up my tongue in a knot 😂

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

    I keep getting same thing,,,Undefined variable $pdo line 13 Formhandler...same problem can I nest the file some how?

  • @MichaelHoague
    @MichaelHoague 7 หลายเดือนก่อน

    I have been a fan of your knowlege. I am dealing with a stoke so excuse me. I am running an issue when I "require_once dataObjects.php". Please Help

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

    In formholder.in.php i added the location but when i click the submit button i am getting the code of my formholder.inc.php code instead of going back to the previous location....what might be the error here... ??

  • @philipholwerda4347
    @philipholwerda4347 3 หลายเดือนก่อน

    Thank your Dani, your teaching is so helpful. I am having an issue with connection failed 1044 Access denied for user ''@'localhost' to database 'mydatabasename' when trying to submit my form into database. Password is correct, privileges are granted. Verrified no password is set, root, local host. Even tried giving it a password and get the same error. I can insert into database directly from phpMyAdmin but not remotely by php from form.

  • @BillsBayou
    @BillsBayou 5 หลายเดือนก่อน

    @3:22 you mention the ".inc.php" naming convention for files in the "/includes" folder. The explanation was not in the last video but in video "20 | Connect to a Database..." at the 45 second mark. In case anyone is interested:
    th-cam.com/video/tHKsZdS8Oug/w-d-xo.html

  • @JXDfr
    @JXDfr 9 หลายเดือนก่อน

    Hey dear! How may i save images as well as display images? I dont think pgpmyadmin svars images? I am looking forward to nobody but your help. Thank you!

  • @deepindark
    @deepindark 7 หลายเดือนก่อน

    Hi Dani - Your series about using SQL from the website is helping me a lot! However, when I follow along the video to the "Positional parameters Prepared Statement" section, I tried to type-in a new user for sign up so that it can get upload to the database. Instead of that, I keep getting this error and cannot solve it. Do you have any ideas in how to solve that?
    (I do find out about something that related to 'mySQL default socket' inside the XAMPP folder but all of the fix where mainly the cause from WordPress db sever).
    "Connection failed: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)"

    • @deepindark
      @deepindark 7 หลายเดือนก่อน

      It's alright now Dani. I have found out the way to fix the issue! 😄

  • @alexvallex5487
    @alexvallex5487 3 หลายเดือนก่อน

    If I have my website done in wordpress how can i have a page that communicates with the new database?

  • @fiveten4092
    @fiveten4092 11 หลายเดือนก่อน +2

    Help I followed the instructions, but then I clicked the sign in this shows up
    "
    Not Found
    The requested URL was not found on this server.
    Apache/2.4.56 (Win64) OpenSSL/1.1.1t PHP/8.2.4 Server at localhost Port 80
    "

  • @peterochekpo6601
    @peterochekpo6601 ปีที่แล้ว

    Hello Mr Dani, thank you for all your good work. I implemented similar thing but this is the error I am getting, "Insert value list does not match column list: 1136 Column count doesn't match value count at row 1". Can you help?

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

      Ignore my challenge please. I was the one who made an error, after a careful check, I discovered I forgot to put a comma (,) in between 2 placeholder question marks.

  • @BrillaPeace
    @BrillaPeace หลายเดือนก่อน

    After I submit my document I get a 404 error, my folder and website are located in the correct htdocs folder. What could be the issue?

  • @dancharlesplange-annan7227
    @dancharlesplange-annan7227 6 หลายเดือนก่อน

    Please help me out, Hello. I have a button called register that takes care of inserting the users' input into the database. But when i clicked on the button, it showed me the code I inputted for the phpcode for the connection to my database

  • @alexmienko3112
    @alexmienko3112 ปีที่แล้ว

    Hello, I have a question, hope you can answer. How do I open a file index.php in the browser? If I do it the regular way it returns just the code inside the file. Thanks)

    • @Dani_Krossing
      @Dani_Krossing  ปีที่แล้ว

      I show how in the first two videos in my PHP playlist 🙂 you gotta make sure you open the site, using your local server, and not by just opening the index file directly in the browser.

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

    Did this and getting request denied. Contacted host and they told me my credentials are right and it's the code. Just so lost right now :/
    Edit: I fixed it!

  • @sovietroll7880
    @sovietroll7880 หลายเดือนก่อน

    I got an error when I click signup button "Connection failed: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)"

  • @phpcoderforever
    @phpcoderforever ปีที่แล้ว

    why you didn't use bindParam method when using question mark?

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

      As I explained in the video, we pass it in using an array instead, inside the execute() method. 🙂

    • @phpcoderforever
      @phpcoderforever ปีที่แล้ว

      @@Dani_Krossing but as I red it is better to use binParam method everytime after prepare statement to secure and prevent sql injection

    • @Dani_Krossing
      @Dani_Krossing  ปีที่แล้ว

      Both methods are for protecting against SQL injection 🙂 The bindParam() function is just a small part of the overall prepared statement that we create, in order to protect against injection.
      bindParam() is just used to bind the users data to our statement, using a keyword that we decided using a placeholder like ":username" inside the query. We can do the same when using non-named parameters, which means we don't need to assign the users data to for example a ":username", since we used "?" as placeholders instead.
      So by using non-named placeholders inside the query using "?" instead, we no longer need to match the placeholder with the data, and can just pass the data directly inside the execute() function as an array. 🙂
      Again... It's just two different ways of using placeholders for the parameters. 😊 Both are preventing SQL injection. So choose the one you like more.

  • @maxjeje8090
    @maxjeje8090 ปีที่แล้ว

    This is the moment Dani became Heisenberg.

  • @andymalunes8316
    @andymalunes8316 4 หลายเดือนก่อน

    finally, im here where you are bald. been waiting for this. Now look where I am at.

    • @andymalunes8316
      @andymalunes8316 3 หลายเดือนก่อน

      update: brother i am working while studying your course, stuck for this for quite a while now. 3 weeks going strong. still falling in love with your course!

  • @stevenoduro1435
    @stevenoduro1435 ปีที่แล้ว

    Uncaught PDOException: could not find driver
    i checked and it said Configuration File (php.ini) Path
    how do i fix this isssue?

  • @new-in8yt
    @new-in8yt 8 หลายเดือนก่อน +2

    thank you so much and i have a question
    what is the deference between this
    $query = "INSERT INTO users (username, pwd, email) VALUES (?,?,?);";
    $stmt->execute([$username, $pwd, $email]);
    and this
    $query = "INSERT INTO users (username, pwd, email) VALUES (:username, :pwd, :email);";
    $stmt->bindParam(":username", $sername);
    $stmt->bindParam(":pwd", $pwd);
    $stmt->bindParam(":email", $email);
    $stmt->excute();
    and which one better or when we use they ?

    • @Dani_Krossing
      @Dani_Krossing  8 หลายเดือนก่อน +1

      Each do things slightly different, but it's more from a maintainability point of view. So it's not about "which is safer" or "better". 🙂
      The first one is called "positional placeholders", and essentially just match the data you later give it, in the same order as the "?" in the query.
      So kind of like how arrays work.
      Where as "named placeholders" allow us to actually label the "?" inside the query, which makes it easier for us as the developer, to know what the "?" are supposed to be.
      So whether you use one or the other, is more about personal preference, or if your work place demand that you use named parameters, to make it easier to hand off the project to someone else.
      So basically it's about:
      "Do you want slightly less code?"
      or
      "Do you want the parameters named?"
      🙂

    • @new-in8yt
      @new-in8yt 8 หลายเดือนก่อน +1

      thank you so much ❤❤❤@@Dani_Krossing

  • @danieldang7239
    @danieldang7239 ปีที่แล้ว

    quick question I keep getting this message after pressing the button "Query failed: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'username' cannot be null" and it won't send the data to my phpmyadmin database. Do you know how to fix this?

  • @HighfieldFarm-w1z
    @HighfieldFarm-w1z 8 หลายเดือนก่อน

    I’m trying to learn to do his right so its really frustrating to spend a lot of time typing in code and trying to figure out what it is doing only to have you say, but this is not the way we should do it. I don’t care how we shouldn’t do it, only how you should.

    • @Dani_Krossing
      @Dani_Krossing  8 หลายเดือนก่อน +1

      I am a teaching channel, not a how to channel. I’m sure there are other channels out there, that only focuses on giving you quick solutions. 🙂

    • @HighfieldFarm-w1z
      @HighfieldFarm-w1z 8 หลายเดือนก่อน

      @@Dani_Krossing What’s the difference. Aren’t you teaching how to?

    • @HighfieldFarm-w1z
      @HighfieldFarm-w1z 8 หลายเดือนก่อน

      @@Dani_Krossing I’m not looking for quick solutions, I’m looking to understand “how to”. I, unlike most, am looking to actually understand what is going on with the software so that I can craft a solution for any situation. I don’t want you to show me your way and then attempt to memorize it as that leaves you with one solution and one solution never fits every problem. I spent most of my life fixing computer hardware. I was very successful at it because I, unlike most, actually knew how the equipment worked. I’m taking that same attitude into learning modern software. The paradigm where we have html, css, javascript on the browser side, http in the middle, with php and sql on the server side is really interesting for me and I enjoy your explanations as I want to know the details. To many sites want you to memorize and copy “their” solution which probably works most of the time. As the software evolves they are left back at the old way because they don’t actually understand what the details are and how they fit.
      Please don’t take offense, I was just telling how it looks from my side.
      Regards, Terry

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

    anyone ever tell you that you look like Elon musk a little?

    • @nimomaniachannel
      @nimomaniachannel ปีที่แล้ว

      😆😆

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

      BRUH that's the feeling I was getting when it was grown out haha

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

      yeah, i have been thinking about this even right now ,he looks like him and speaks like him.

  • @Tense2006
    @Tense2006 10 หลายเดือนก่อน

    does anyone know why after i do $stmt = $pdo->prepare($query);
    the rest of the things turn into html

  • @Stash.J4d
    @Stash.J4d 10 หลายเดือนก่อน +1

    For health reasons? are you okay? We hope your as healthy as possible at the time.

    • @Dani_Krossing
      @Dani_Krossing  10 หลายเดือนก่อน +1

      Yes I am healthy 😊

  • @jeremiahorpilla6537
    @jeremiahorpilla6537 ปีที่แล้ว

    the SQL query runs smoothly but why do I get Uncaught Error: Call to undefined function null() when I put the $pdo = null(); $stmt = null(); in the try block?

  • @Trunk_Tech
    @Trunk_Tech ปีที่แล้ว

    Hello Dani please help me sort out this error which state : ***Fatal error: Uncaught Error: Array callback must have exactly two elements in C:\xampp\htdocs\Socialhub_Php\Includes\formhandler.inc.php:2 Stack trace: #0 {main} thrown in C:\xampp\htdocs\Socialhub_Php\Includes\formhandler.inc.php on line 2****

    • @Trunk_Tech
      @Trunk_Tech ปีที่แล้ว

      Now this ***** Fatal error: Uncaught Error: Call to a member function prepare() on null in C:\xampp\htdocs\Socialhub_Php\Includes\formhandler.inc.php:17 Stack trace: #0 {main} thrown in C:\xampp\htdocs\Socialhub_Php\Includes\formhandler.inc.php on line 17*****
      Anyone with an idea

  • @hatemhashlamoun1915
    @hatemhashlamoun1915 ปีที่แล้ว

    I need help, I implemented the same code, but once I submitted my first INSERT code the databaase completly crashed and I couldn't even keep it running on the XAMPP

    • @Dani_Krossing
      @Dani_Krossing  ปีที่แล้ว

      That seems odd… My only guess is that it is a hardware issue, or you somehow looped the query repeatedly until the server crashed. 😅
      I don’t see any other explanations…

  • @klirmio21
    @klirmio21 ปีที่แล้ว

    For health reasons? Are you okay Dani?

  • @BillyRyan123
    @BillyRyan123 4 หลายเดือนก่อน

    I tried and I keep getting error on my line 32 that undefined pdo

  • @lifeinspirers
    @lifeinspirers ปีที่แล้ว

    Please do these videos in mysqli

    • @Dani_Krossing
      @Dani_Krossing  ปีที่แล้ว

      My older PHP course uses MySQLi if you are interested 🙂 it can be found on my channel page

  • @dylankatamba8124
    @dylankatamba8124 10 หลายเดือนก่อน

    i used all your codes but am getting an error [HY000] 2006 , server has gone away , please help

  • @ColorfulWonders
    @ColorfulWonders 7 หลายเดือนก่อน

    I followed this tutorial to the letter but for some reason my database isn’t updating when I use the form. There no error message, so I’m not sure what the problem is. I’ve gone over this video and my code multiple times, I’ve restarted my computer and everything, still doesn’t work. I have no idea why. Help? Love this video series btw.

    • @Dani_Krossing
      @Dani_Krossing  7 หลายเดือนก่อน

      Paste your PHP code here 🙂

    • @ColorfulWonders
      @ColorfulWonders 7 หลายเดือนก่อน

      @@Dani_Krossing

    • @ColorfulWonders
      @ColorfulWonders 7 หลายเดือนก่อน

      @@Dani_Krossing

    • @ColorfulWonders
      @ColorfulWonders 7 หลายเดือนก่อน

      @@Dani_KrossingI keep trying to share my code but I think youtube may be deleting my comments :(

    • @Dani_Krossing
      @Dani_Krossing  7 หลายเดือนก่อน +1

      Yeah it sometimes does that. I can see it now. I’ll check it out once I get back to my PC later 🙂

  • @kylehawks2966
    @kylehawks2966 ปีที่แล้ว

    I'm getting a 403 code after I submitt but data is going to table,also not getting pop up for the first page is this something to worry about or ....?

    • @Dani_Krossing
      @Dani_Krossing  ปีที่แล้ว

      I believe that is caused by a incorrect username or password in your dbh.inc.php file.

    • @kylehawks2966
      @kylehawks2966 ปีที่แล้ว

      @@Dani_Krossing I've looked I don't see 1 $dbusername, $dbpassword?......also $dbpassword = "";

    • @Dani_Krossing
      @Dani_Krossing  ปีที่แล้ว

      @@kylehawks2966 These two videos should help you out.
      th-cam.com/video/tHKsZdS8Oug/w-d-xo.html&ab_channel=DaniKrossing
      th-cam.com/video/7ALVC1eWgdI/w-d-xo.html&ab_channel=DaniKrossing

    • @kylehawks2966
      @kylehawks2966 ปีที่แล้ว

      @@Dani_Krossing I don't mean to be a pest.... but I literally have your code to the letter and using your editor everything I tried the cleaning tables nothing i'll try a pasword

    • @kylehawks2966
      @kylehawks2966 ปีที่แล้ว

      I now can't get into my admin ...yes put password in inc file

  • @rgbcheck2155
    @rgbcheck2155 ปีที่แล้ว

    I need your Help.
    i do everything and i get this Error.
    Query failed: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected
    Can u tell me what else i need to check. Because all files. are good but if i submit i get this message ??? :(

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

      It means you didn't select a database for the query. Maybe you made a typo in the databases name in the dbh file.

    • @rgbcheck2155
      @rgbcheck2155 ปีที่แล้ว

      still the same Error Message. Idk if thats important but look at this Code here $dsn = "mysql:host=localhost;dbname = frst_db" the equal before my frst_db i had to put space before and after the equal sign. The only Problem ist when i submit the data. After clicking the button i´ll get this Error. @@Dani_Krossing

  • @fifaham
    @fifaham 2 หลายเดือนก่อน

    I though who is this new guy? LOL - new hair cut.

  • @DejanPavlovic-tu8vj
    @DejanPavlovic-tu8vj ปีที่แล้ว

    You look better with long hair :) after ton of advices you gave to us, perhaps we can give one suggestion to you ? :) hehe GL

  • @stranger9951
    @stranger9951 ปีที่แล้ว

    Do you know u/colschrapnel from Reddit?

  • @ChaoticCabbage
    @ChaoticCabbage 5 หลายเดือนก่อน

    Anyone having issues getting this working on Mac?

  • @BostonPerry-j1m
    @BostonPerry-j1m ปีที่แล้ว

    Hi Dani - I keep getting this error and cannot solve it. Any ideas?
    Connection failed: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
    Warning: Undefined variable $pdo in C:\xampp\htdocs\MyWebsite\includes\formhandler.inc.php on line 13
    Fatal error: Uncaught Error: Call to a member function prepare() on null in C:\xampp\htdocs\MyWebsite\includes\formhandler.inc.php:13 Stack trace: #0 {main} thrown in C:\xampp\htdocs\MyWebsite\includes\formhandler.inc.php on line 13
    Thanks!

    • @BostonPerry-j1m
      @BostonPerry-j1m ปีที่แล้ว

      I fixed it!

    • @kunalyadav9727
      @kunalyadav9727 ปีที่แล้ว

      bro im also facing the same error how to fix it
      @@BostonPerry-j1m

    • @kunalyadav9727
      @kunalyadav9727 ปีที่แล้ว

      ??

    • @BostonPerry-j1m
      @BostonPerry-j1m ปีที่แล้ว

      I believe I had to add "root" to both $dbusername and $dbpassword in the database connection page, or delete both and just put ""@@kunalyadav9727

    • @mackevinmontano7888
      @mackevinmontano7888 11 หลายเดือนก่อน

      how din you solve it bro?

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

    i miss his hair 😢

  • @breawen
    @breawen 10 หลายเดือนก่อน

    10:54 "so i'm going to _die~_ "

  • @oldumvolley
    @oldumvolley 5 หลายเดือนก่อน

    where is your hair dani wtf

  • @samuelbaruch8790
    @samuelbaruch8790 9 วันที่ผ่านมา

    Your hair, noo

  • @waldoglas3412
    @waldoglas3412 ปีที่แล้ว

    we like the long hair more

    • @waldoglas3412
      @waldoglas3412 ปีที่แล้ว

      Also your video helped a lot thx