Return to Snippet

Revision: 6441
at May 21, 2008 10:35 by mikegreen


Updated Code
<?php

define ('DB_USER', '');
define ('DB_PASSWORD', '');
define ('DB_HOST', '');
define ('DB_NAME', '');

$dbc = mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die('Could not connect to MySQL: ' . mysql_error());
mysql_select_db (DB_NAME) OR die('Could not select the database: ' . mysql_error());

?>

Revision: 6440
at May 21, 2008 10:34 by mikegreen


Updated Code
<?php

define ('DB_USER', '');
define ('DB_PASSWORD', ']');
define ('DB_HOST', '');
define ('DB_NAME', '');

$dbc = mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die('Could not connect to MySQL: ' . mysql_error());
mysql_select_db (DB_NAME) OR die('Could not select the database: ' . mysql_error());

?>

Revision: 6439
at May 21, 2008 10:33 by mikegreen


Initial Code
<?php

define ('DB_USER', '');
define ('DB_PASSWORD', ']');
define ('DB_HOST', '');
define ('DB_NAME', '');

$dbc = mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die('Could not connect to MySQL: ' . mysql_error());
mysql_select_db (DB_NAME) OR die('Could not select the database: ' . mysql_error());

?>

Initial URL

                                

Initial Description

                                

Initial Title
PHP MySQL Connect

Initial Tags
mysql, database, textmate

Initial Language
PHP