Connect a html document to databse

Closed
rajesh - 7 Sep 2010 à 04:27
 samrm111 - 6 Nov 2011 à 01:26
Hello, this is raja valeti i want connect a html document to databse.
i don't know how to connect it could u plz tell me how to connect html document to database and plz send a simple example for this


Related:

1 response

<?php

$connect = mysql_connect ("location","admin name","password");

if (!$connect){
die("Failed to connect:" . mysql_error());
}
if (!mysql_selct_db("database_name")) {
die("Failed to selct DataBase" . mysql_error());
}

?>