Learn PHP : Making a connection to MySQL database
30th March 2010 by Param Lowe No CommentsThe benefit of choosing PHP as a web platform is its utility in dynamic and database driven web applications. It is fairly easy in PHP script to make a connection to MySQL database.
<?php
$connection = mysql_connect(”DataBase-Host”, “DataBase-User”,”Password-of-databse”)
OR die(’Error connecting to mysql’); // means do not execute code any further.
$dbname = ‘databasename’;
mysql_select_db($dbname);
?>
There is one more better [...]








Hello there,



