prcollin Posted July 16, 2007 Share Posted July 16, 2007 How do i connect an HTML form to a mysql database. Link to comment https://forums.phpfreaks.com/topic/60191-form-to-database/ 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 Link to comment https://forums.phpfreaks.com/topic/60191-form-to-database/#findComment-299459 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.