Custom Search

News World

Oct 24, 2008

PHP Script : Section 05 : How to Connect Database MySQL with PHP Script

Follow this script and save with name config.inc (general file name).


$dbname = "php-learn";
$dbuser = "";
$dbpass = "";
$dbhname = "localhost";
$db = mysql_connect($dbhname, $dbuser, $dbpass) or die("unable to connect to database server");
mysql_select_db($dbname,$db) or die ("Unable to connect to SQL Server");
?>

more : web.solusi@gmail.com

No comments:

IT Conversations

Moneycontrol Latest News

Latest new pages on Computer Hope

Latest from Infoworld

Door Lock

Door Lock Import Top Door Lock from China Contact Quality Manufacturers Now