Php How To Enter Data Into Database With Php Scripts
Php How To Enter Data Into Database With Php Scripts
Php, How, To, Enter, Data, Into, Database, With, Php, Scripts


Fri Nov 13, 2009 12:50 pm - Php How To Enter Data Into Database With Php Scripts
#508
Php How To Enter Data Into Database With Php Scripts
author: webune hosting
Leave Your Comments
name
comments
Share
Share this post by copy and paste this URL and put it on your forums or use it on your profile like myspace, friendster, Facebook, Twitter or others and add in with your comments.
URL Link: ask
Use this HTML code to embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed: ask
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on with Posts and Replies on your forums
BBCODE: ask
| More
Wed May 21, 2008 7:38 am - Re: Php How To Enter Data Into Database With Php Scripts
#645
devesh
thanks for your tutorial..
these are the best..plz give me information if required further..
Sat May 10, 2008 10:55 pm - Re: Php How To Enter Data Into Database With Php Scripts
#657
Rony
Thanks for your tutorial. its very much helpful for all of us who fall on problem from php to database. thanks again for your this tutorial. i was searching this type of article from long time.
Sun Jun 22, 2008 4:33 am - Re: Php How To Enter Data Into Database With Php Scripts
#658
manoj
Why this error???


Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'admin'at 'localhost' (using password: YES) in /home/texaskuw/public_html/submit.php on line 19

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/texaskuw/public_html/submit.php on line 20
How To Insert Data Into MySQL db using form in php
Sun Jun 22, 2008 4:37 am - Re: Php How To Enter Data Into Database With Php Scripts
#659
manoj
Why this error???


Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'admin'at 'localhost' (using password: YES) in /home/texaskuw/public_html/submit.php on line 19

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/texaskuw/public_html/submit.php on line 20
How To Insert Data Into MySQL db using form in php
Sun Jun 22, 2008 4:38 am - Re: Php How To Enter Data Into Database With Php Scripts
#660
manoj
Why this error???


Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'admin'at 'localhost' (using password: YES) in /home/texaskuw/public_html/submit.php on line 19

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/texaskuw/public_html/submit.php on line 20
How To Insert Data Into MySQL db using form in php
Sun Jun 22, 2008 5:06 am - Re: Php How To Enter Data Into Database With Php Scripts
#661
Manoj
Thank You Guys, Now it worked.. It was my silly mistake.. Am really happy to see my first data in the DB.. great buddy
Tue Jun 24, 2008 2:09 am - Re: Php How To Enter Data Into Database With Php Scripts
#662
Manoj
I want the confirmation message to be as a popup mesage inside a div element. Can anyone advise what changes to be done??


echo ????????.
Tue Jun 24, 2008 2:12 am - Re: Php How To Enter Data Into Database With Php Scripts
#663
Manoj
I want the confirmation message to be as a popup mesage inside a div element. Can anyone advise what changes to be done??


echo ????????.
Thu Jul 10, 2008 4:39 pm - Re: Php How To Enter Data Into Database With Php Scripts
#664
baisakhi
Thanks a bunch !!! it was a great help.
rgds
Thu Jul 24, 2008 1:20 am - Re: Php How To Enter Data Into Database With Php Scripts
#665
Stan Fraser
Found this very useful, what I would like to do is return automatically to the input form after data is submitted, how do I do that. Thanks and Regards
Mon Jul 28, 2008 7:24 pm - Re: Php How To Enter Data Into Database With Php Scripts
#666
shafika
Why this happen??
after i inserted all the data in the form..this was happen..
what should i do??
"ERROR: No database selected"
Thu Jul 31, 2008 1:43 pm - Re: Php How To Enter Data Into Database With Php Scripts
#667
Web Hosting Support
it just means that the script cannot connect to the database your provided, make sure you have provided the correct username and password

$hostname = "localhost";
$db_user = "webune_user";
$db_password = "mypassword";
$database = "database";
$db_table = "user_info";
Sun Aug 03, 2008 1:45 pm - Re: Php How To Enter Data Into Database With Php Scripts
#668
eric
I think I followed the instructions correctly but when I run the page in a browser I get this error stuff at the top of the page:

Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 113 in /data/17/1/106/141/1595793/user/1719441/ on line 28

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /data/17/1/106/141/1595793/user/1719441/ on line 29

Any Ideas?
Mon Sep 08, 2008 6:08 pm - Re: Php How To Enter Data Into Database With Php Scripts
#669
gandolf98
Once I figured out what the php was doing and how I could adapt it, it works great.
Now is there a way for the PHP not only to place data in DB, but what code addition is needed to allow it to Mail the info to me and a responce "Thank You" letter to the person that filled out the form?
Thu Nov 06, 2008 8:41 pm - Re: Php How To Enter Data Into Database With Php Scripts
#670
omkar
hi friends it works fine but i got error

ERROR: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (46)

can u or anyone help me out it is very important to me
Thu Nov 06, 2008 8:52 pm - Re: Php How To Enter Data Into Database With Php Scripts
#671
omkar
hi friends it works fine but i got error

ERROR: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (46)

can u or anyone help me out it is very important to me
Thu Nov 06, 2008 9:26 pm - Re: Php How To Enter Data Into Database With Php Scripts
#672
omkar
hi
i am using web host there local host name
is mysql ur code is working but i am not able to see inserted data into my table that is thank you message comes but after that table does not show any record plz help
$hostname = "localhost";
$db_user = "webune_user";
$db_password = "mypassword";
$database = "database";
$db_table = "user_info";
Sun Nov 09, 2008 4:31 pm - Re: Php How To Enter Data Into Database With Php Scripts
#673
abdul
yes, thank you for teaching me how how to insert data from html form into mysql database
Sat May 23, 2009 3:54 am - Re: Php How To Enter Data Into Database With Php Scripts
#674
Manick
Hi, I have entering data html form to mysql table but if i save php file or refresh html page either 0 data has been saved or previous data has been saved.
I want only those data, which are enter by html form.
Kindly, tell about this.
Mon Jun 15, 2009 4:00 am - Re: Php How To Enter Data Into Database With Php Scripts
#675
Manick
Hi, I have done the above example, but data has been not entering the table.
im using
hostname = "localhost";
$db_user = "root";
$db_password = "";
$database = "database";
$db_table = "user_info";
Sun Jul 12, 2009 2:15 pm - Re: Php How To Enter Data Into Database With Php Scripts
#676
poaulss555
i got mine working using your code at first i thot how to enter the data table in mysql? but then when i follow you step by step tutorial i was able to insert the data into my db using the php code files. thanks, im new at this and it helped me understand how this works. i always wondered how you can put words of information into a database and then come back and put it on the website. this is neat.

i will take a class on this now you got me interested.
Sun Jul 12, 2009 2:21 pm - Re: Php How To Enter Data Into Database With Php Scripts
#677
new4nes
my questions is.. how to post data between php scripts

i have multiple php scripts, can i use the same code for them?
Thu Jul 16, 2009 9:31 pm - Re: Php How To Enter Data Into Database With Php Scripts
#678
srikrishna
i have my wone php myadmin so ineed to connect my database please provied me d details how can i connect to tha t please provied details
Thu Sep 10, 2009 8:47 am - Re: Php How To Enter Data Into Database With Php Scripts
#679
briou
can u show how to enter data into ms access database with php script
Wed Oct 07, 2009 10:12 am - Re: Php How To Enter Data Into Database With Php Scripts
#2510
marri
doe this work if no value should entered into database on refresh in php
Sun Oct 25, 2009 7:00 pm - Re: Php How To Enter Data Into Database With Php Scripts
#2643
651temerier
wow, very detailed tutorial step by step using phpmyadmin and connect to html form. this is exactly what i was googling for. hahahah. you're a genius, it worked for me
Fri Nov 06, 2009 11:33 am - Re: Php How To Enter Data Into Database With Php Scripts
#2741
surekiger
my tip is that if you use php and mysql make sure all field are filled before inserting data to the database
Sat Nov 07, 2009 8:56 pm - Re: Php How To Enter Data Into Database With Php Scripts
#2745
luious
i am entering data into the database two are more request at time run in my server using php
Tue Nov 10, 2009 8:59 pm - Re: Php How To Enter Data Into Database With Php Scripts
#2788
styema32
i was interested in knowing how to create web page to enter data to database, but this works great. thank you
Wed Nov 18, 2009 10:13 am - Re: Php How To Enter Data Into Database With Php Scripts
#2844
jackman
i get the text boxes and the update button, but when i press submit, the page refreshes, but the data has not been updated in the database using php and mysql
Fri Nov 27, 2009 1:35 pm - Re: Php How To Enter Data Into Database With Php Scripts
#2907
contant_ip
i want to insert my login details to phpmyadmin database ??
Fri Dec 04, 2009 5:17 am - Re: Php How To Enter Data Into Database With Php Scripts
#2955
anthoney
error: can't connect to local mysql server through socket '/var/run/mysqld/mysqld.sock' (2)

i keep getting this message
Thu Feb 25, 2010 5:28 pm - Re: Php How To Enter Data Into Database With Php Scripts
#3518
neximin
how to add the details from php input boxes to phpmyadmin database?
Wed Mar 03, 2010 8:36 pm - Re: Php How To Enter Data Into Database With Php Scripts
#3556
Karan
thanks.
it helped a lot.
Mon Apr 05, 2010 4:59 pm - Re: Php How To Enter Data Into Database With Php Scripts
#3715
palupe
i can show you how does it know to enter values to database when we hit submit in php
Sat Jul 10, 2010 1:58 am - Re: Php How To Enter Data Into Database With Php Scripts
#4144
harsha
its extra ordinary
Wed Jul 21, 2010 7:17 am - Re: Php How To Enter Data Into Database With Php Scripts
#4227
randy
i learned how to , but i got an error you guys saved me, i can do this now by myself
Mon Aug 30, 2010 3:17 am - Re: Php How To Enter Data Into Database With Php Scripts
#4398
Kevin
thank you, but its not working. i'am not getting an error message, and the information is not going into the database.