how to insert data into mysql database using a textbox in php?
uselessninja
0
Junior Poster
Recommended Answers
Jump to Posthow to use Google?
how to use php.net?
how to use forum search?
how to show us your code so far?
Jump to PostSo much stuff is there in google..
Use better keywords.
http://www.google.co.in/search?source=ig&hl=en&rlz=&q=insert+form+data+into+mysql+using+php&aq=0&aqi=g7g-v3&aql=&oq=insert+form+data+
Jump to PostTo insert data into Mysql DB using PHP yop should have to use Mysql insert statement.
An Example of this
HTML page script .
<form action ="next.php" method="post" >
<input type ="text" name="name" />
</form>page next.php
$link = mysql_connect("Server name","username","passwd");
mysql_select_db("db name"):
$result = mysql_query("insert into tablenmae values($_POST[name])");
…
Jump to Postmysqli even?
All 13 Replies
diafol
Shanti C
106
Posting Virtuoso
ravisoni6262
0
Newbie Poster
diafol
IIM
163
Master Poster
uselessninja
0
Junior Poster
diafol
uselessninja
0
Junior Poster
joomlaoscommerc
0
Newbie Poster
uselessninja
0
Junior Poster
guruparthi
-6
Newbie Poster
mesh457
0
Newbie Poster
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.