note 110303 added to function.mysqli-connect
| From: | info | Date: | Tue, 09 Oct 2012 14:33:48 +0000 |
| Subject: | note 110303 added to function.mysqli-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-191208@lists.php.net to get a copy of this message | ||
<?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() );
?>
----
Server IP: 69.147.83.199
Probable Submitter: 122.161.62.13
----
Manual Page -- http://www.php.net/manual/en/function.mysqli-connect.php
Edit -- https://master.php.net/note/edit/110303
Del: integrated -- https://master.php.net/note/delete/110303/integrated
Del: useless -- https://master.php.net/note/delete/110303/useless
Del: bad code -- https://master.php.net/note/delete/110303/bad+code
Del: spam -- https://master.php.net/note/delete/110303/spam
Del: non-english -- https://master.php.net/note/delete/110303/non-english
Del: in docs -- https://master.php.net/note/delete/110303/in+docs
Del: other reasons-- https://master.php.net/note/delete/110303
Reject -- https://master.php.net/note/reject/110303
Search -- https://master.php.net/manage/user-notes.php