2014-09-14

connnection.php

Connection Code PHP - MySql
Connecton.php Download

Code

<?php

$us="root";  // username
$pwd="";  // password
$ls="localhost"; //host
$db=mysql_connect($ls,$us,$pwd)or die(mysql_error());
$sd=mysql_select_db("mydb",$db)or die(mysql_error());

// mydb - database

?>

Note :  In connection string all requirement will be set by you at the time of installationBy Default username = root, password = " ", Host-address = " localhost ", Database = "Database Name " for example = 'mydb'.

You can download directly connection.php page Click here

0 comments:

Post a Comment

Tools & Plugins

Blog Archive