note 110303 deleted from function.mysqli-connect by googleguy

From: Date: Tue, 09 Oct 2012 14:42:32 +0000
Subject: note 110303 deleted from function.mysqli-connect by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191209@lists.php.net to get a copy of this message
Note Submitter: info [at] freeelancers.net ---- <?php # Script 8.2 - mysqli_connect.php // Set the database access information as constants: DEFINE ('DB_USER', 'root'); DEFINE ('DB_PASSWORD', 'pass'); DEFINE ('DB_HOST', 'localhost'); DEFINE ('DB_NAME', 'my_db'); DEFINE ('PORT', '3306'); // 3306 is Default port for mysql. // Make the connection: $mysqli = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME, PORT) or die ('Could not connect to MySQL: ' . mysqli_connect_error() ); ?>

« previous php.notes (#191209) next »