|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-07-02 12:22 UTC] bamnet111 at netscape dot net
I've setup php and mysql to setup a database. I create a form send data to the form but the dta won't go. I've tried using many different scripts but none of them can connect. I don't get a connect error ar any eror at all. How can i fix this problem? HELP PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 16:00:02 2026 UTC |
Well, my script calls for php to send data from a form into a database using the code below. Php should have displayed a Thnak you for your entery note to show it added the entrys. When I hit the submit button the page just clears the form. I have checked the mysql database and nothing is there. if ($submit) { // process form $db = mysql_connect("*****", "******", "******"); mysql_select_db("mydb",$db); $sql = "INSERT INTO employees (first,last,address,position) VALUES ('$first','$last','$address','$position')"; $result = mysql_query($sql); echo "Thank you! Information entered.\n"; } else{ This goes on to end php and create the form.