webmatrix and php directing to another page

I have a simple application that I would like to read data from mysql. My index page include simple form to send data to server to process , especially to match data against database.

<form action="page.php" method="post">

</form>

In the page.php, I do the following

define('DATABASE','Users');
define('TABLE','poll');
define('HOST','localhost');
define('USER','root')
define('PASSWORD','');
$conn=mysql_connect(HOST,USER,PASSWORD) or die("Unable to connect to specified DB");
mysql_select_db(DATABASE); etc

But when I submit the form, I receive the 500.0 error message that claims the unmatched ISAPI setup module. I am thinking webmatrix offer all configuration by default, do you have any idea of how to fix this ? Please help.

Answers


  $conn = mysql_connect("localhost", "username", "password");
 if(!$conn)
 {
die('Could not connect '.mysql_error());
 }
 mysql_select_db("dbname");

Need Your Help

Getting OpenSSL::SSL::SSLError: SSL_set_tlsext_host_name when trying to make a post request through https

ruby rest ssl openssl net-http

I'm trying to send a post request through https using net/http class in ruby and I'm getting this error:

checkbox dynamic create for jquery

jquery html

How do i create multiple checkbox for jquery to identify it?