PHP Basic 1
MySQL Database connection using PHP.
<?php $host="localhost"; $uname="database username"; $pass="database password"; $database = "database name"; $connection=mysql_connect($host,$uname,$pass) or die("Database Connection Failed"); $result=mysql_select_db($database) or die("database cannot be selected"); ?>
No comments:
Post a Comment
Please leave your comments and we will be reply you back ASAP
vikas agrawal