403, 978 views

3, 723 Likes   186 Dislikes

How to connect HTML Form to MySQL Database with PHP in 4 Minutes

Code And Coins

Code And Coins

Published on 2 years ago





Want to know, How to connect HTML Form to MySQL Database using PHP. Here I have an easy and Short step to Insert Form data into a database.
Source code: http://bit.ly/2TwJmJP
PHP Tutorial for a beginner: http://bit.ly/2pWmF3A
If you don't know how to create HTML form then you can watch :-
How to Create Registration Form in HTML - Easy - 2017 = https://mp3download.xyz/watch/D4jj3HHrnSU
HTML Forms - Learn 18 HTML Input Types | HTML5 = https://mp3download.xyz/watch/MKSQYsLLFEo
Login System using PHP with MySql Database with Session = https://mp3download.xyz/watch/8G7271LAyHY

Twitter : https://twitter.com/CodeAndCoins
Google+ : https://goo.gl/7vjhrp
Facebook : https://www.facebook.com/CodeAndCoins
Blog : https://goo.gl/EW5zMr

Share this Video and Subscribe to my channel

#CodeAndCoins #MySQL #Php


Comments :

Code And Coins

Code And Coins . 12 months ago

PHP Tutorial for a beginner: http://bit.ly/2pWmF3A

Unknown

Unknown . 2 weeks ago

Thanks a lot man . <3

Issie Glore

Issie Glore . 2 weeks ago

please add how you create a database

FIRE and ICE

FIRE and ICE . 2 weeks ago

Please! How to add table of registration in blogger and link it with database phpmyadmin

Virginia Hamra

Virginia Hamra . 4 weeks ago

thank you, best tutorial.

من الأفضل ؟؟

من الأفضل ؟؟ . 1 month ago

bravo

Joshua Mirang

Joshua Mirang . 1 month ago

where should i save it and how can i open the link like this localhost/test/register/form.html when itype it it said object not found please help me

Richard Williams

Richard Williams . 1 month ago

Super Thanks!

Haru hana

Haru hana . 1 month ago

PhpMyadmin is a free website or not?

Remycade

Remycade . 1 month ago

HI Mate - Great video. I get this error when I click submit on the html form "Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster. error 404" I basically copied your script and did not add anything extra, any ideas

Akarsh S Amble

Akarsh S Amble . 2 months ago

I created the regirstration as shown in above video .but the details are not displayed in the database except the id

NoobPlayZZ

NoobPlayZZ . 2 months ago

Hey I have a question is there any way of doing this: Not created yet = New value | Already created = Replace a specific value

NoobPlayZZ

NoobPlayZZ . 2 months ago

Very Good tuturial Keep up your work!, Maybe next time show the MySQL Database Configuration too because i set the values to int(11) but they needed to be TEXT. O yeah i never programmed with php before and i added a value myself like its the best tutrial ever!

Purv Jeja

Purv Jeja . 2 months ago

My php code gets print when i click on submit button?What to do?

Heymin Wolver

Heymin Wolver . 2 months ago

Its so irritating to hear how you speak couldn't properly comprehend your words but thanks dude it helped me

Rewnar Bros

Rewnar Bros . 2 months ago

my php doesnt work? how can i fix this?

Dom

Dom . 2 months ago

Guys, Gals please help Im getting a HTTP 405 error IDK why

Pikachoo Pik

Pikachoo Pik . 2 months ago

Yeah! Its really useful 🤩

megastar pavanjatt_

megastar pavanjatt_ . 3 months ago

Abey bengali.... Video Hindi mein bana

pranita pachakar

pranita pachakar . 3 months ago

sir your user name is root and password is none so what is my username and password how can i decide.

GAMERS WILL BE GAMERS

GAMERS WILL BE GAMERS . 3 months ago

When I click on my submit button to store the data in database I see my whole PHP code and username password are also not stored in the database Help please!!!

Enbakom Abel

Enbakom Abel . 3 months ago

Great coder

Sasithra Sockalingam

Sasithra Sockalingam . 3 months ago

hi bro, its awesome!!! but the connection do by own is i cant understand even i have looked in your link. im new to the this field. so can you teach me the database connection. Otherwise good. tq.

Mr Yellow

Mr Yellow . 3 months ago

good teacher

M faraday

M faraday . 3 months ago

not working sir

temitope ogunsuyi

temitope ogunsuyi . 3 months ago

This man is really good in teching

KAKARLA N S SAI NIMISHA RANI 15MIS1127

KAKARLA N S SAI NIMISHA RANI 15MIS1127 . 4 months ago

i am getting error in this code (in php connect code)can anyone try this .......error:(Parse error: syntax error, unexpected 'else' (T_ELSE))

Azeez Muideen

Azeez Muideen . 4 months ago

hello thanks for this video i tried it and it work fine but i want the page to be redirected to homepage after successful submission of form message

TECH_EASY

TECH_EASY . 4 months ago

Connect.php ka code execution script show ho rahi hai

Jackal Jax

Jackal Jax . 4 months ago

Thank you so much for keeping this simple. My code is finally working and passing data to my database!

priyank suthar

priyank suthar . 4 months ago

i write the same code for my database connection for education but the my computer showing error in php .plz show me error i will put in below codeprepare($SELECT); $stmt->blind_param("s",$email); $stmt->execute; $stmt->blind_result($email); $stmt->store_result(); $rnum =$stmt->num_rows; if($rnum==0) { $stmt->close(); $stmt=$conn->prepare($INSERT); $stmt->blind_param("ssssii",$username,$password,$Gender,$Email,$PhoneCode,$PhoneNo); $stmt->execute(); echo"new record inserted"; } else { echo="already register" } $stmt->close(); $conn->close(); } } else { echo"all fields are required"; die(); } ?>plz find the error solution give me.database name is my and table name is registration

aapka channel

aapka channel . 5 months ago

Tnxxx a lot 😉😁😁😁😁

aapka channel

aapka channel . 5 months ago

Yor are excellent sir

Parth Desai

Parth Desai . 5 months ago

Sala Itne Bade Bade youtuber Hindi me video Bana te or Sala chhote chhote youtuber Ko Bhot kida hai English ka#HamAnpadgawar

Tahir Khan

Tahir Khan . 5 months ago

sir its not working... i followed each and every step of the video When i hit "submit" button the my php coding appears in next window rather to show "new record inserted successfully".. pls guide me sir, whats this problem

Veinai Elizabeth

Veinai Elizabeth . 5 months ago

What is wrong with this code? it shows this error .... Parse error: syntax error, unexpected 'PhoneNumber' (T_STRING), expecting ',' or ';' in C:\xampp\htdocs\connect.php on line 30query($sql)){ echo "You are registered successfully"; } else{ echo "Error:".sql."
.$conn->error; } $conn->close(); } } else{ echo "PhoneNumber is mandatory"; die (); } } else{ echo "Name should be filled"; die() } ?>

Ahsan Khan

Ahsan Khan . 5 months ago

That's sign up form not log in form

Axel Hartanto

Axel Hartanto . 5 months ago

Work for asp.net mvc? (.cshtml)

Rohit Berwal

Rohit Berwal . 6 months ago

First, work on your English as it's very horrible. Then think of being a Youtuber.

Canalul cu de toate

Canalul cu de toate . 6 months ago

query($sql)) { echo "New record is inserted sucessfully"; } else { echo "Error: ". $sql ." ". $conn->error; } $conn->close(); } } else { echo "Password should not be empty"; die(); } } else { echo "Username should not be empty"; die(); } ?>

vyshnavi katla

vyshnavi katla . 6 months ago

this worked for me and A big thank you for this video

Suigetsu Hōzuki

Suigetsu Hōzuki . 6 months ago

I have a problem. Everything works fine until i enter username and password and click Submit. I get the message "Username should not be empty"

Sebastian Andre Godoy

Sebastian Andre Godoy . 6 months ago

Cool dude! I have a question, How can I prevent a duplicated record? for example if the user register twice, how can I prevent it from being added up to the Database?

Arun Yadav

Arun Yadav . 6 months ago

how to open this localhost page plzzz tell me

Mr. Strange

Mr. Strange . 6 months ago

Thanks a lot for making it quick and giving source code.

Waqar Akram

Waqar Akram . 6 months ago

No its not working for me .there is some problem in connect.php file

Naini Production

Naini Production . 7 months ago

Bro give a link of creating data base

bong marcellin

bong marcellin . 7 months ago

Code and Coins, please explain more about how to open the file, etc. I'm a beginner who is helped by you!!! thank you so much... but i have difficulties when I'm trying to open the html file, evidently i have to open the html files in the localhost/FILENAME/ which has been saved in htdocs in xampp! good luck everyone! hope this comment can help another beginner like me <3

Yash Jain

Yash Jain . 8 months ago

how to add a link to a php pAGE Instead of displaying the message "reccord inserted" ?

SKAR

SKAR . 8 months ago

i click on the video and an add of wix apper



Report form


Related Videos





Copyright © 2019 MP3XYZ. All Rights Reserved
Made with by MP3XYZ