Connection Code PHP - MySql
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
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
?>
$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
No comments:
Post a Comment