prcollin Posted July 16, 2007 Share Posted July 16, 2007 How do i connect an HTML form to a mysql database. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted July 16, 2007 Share Posted July 16, 2007 you don't you connect to a database via php using something like $dbcon = mysql_connect(host,un,pw); php processes the form (either using the $_GET or $_POST arrays - printr($_POST) to see what your form is POSTING) and generates a query string from that data. That query string is then excuted via mysql_query($strin) function. http://uk3.php.net/manual/en/function.mysql-query.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.