-1

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.

4

1 回答 1

0
  $conn = mysql_connect("localhost", "username", "password");
 if(!$conn)
 {
die('Could not connect '.mysql_error());
 }
 mysql_select_db("dbname");
于 2012-06-13T10:40:21.013 回答