FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free Frihost Account!

Connecting php to a mysql server with mysql




the mysql is more simple than the mysqlI, the mysqli is the new version of the mysql, but some host don´t accept mysqli, but mysql yes, for connect using MYSQL, use that code

Code:

$db_host="localhost";
$db_user="root";
$db_password="";
$db_name="serrano";
$connect = @mysql_connect($db_host, $db_user, $db_password) or die(mysql_error());
$db = @mysql_select_db($db_name, $connect) or die(mysql_error());




0 blog comments below




FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.