MySQL Forums
Forum List  »  PHP

Re: What do you do with the database user passwords?
Posted by: Paul Wheeler
Date: November 05, 2014 02:53PM

This is an example of the contents of my php include file......

<?php
// Create connection
DEFINE ('DB_USER', 'bob');
DEFINE('DB_PASSWORD', 'bobspassword');
DEFINE('DB_NAME', 'db1');
DEFINE('DB_HOST', 'localhost');
// Create connection
$dbcon = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) OR die
('Could not connect to MySQL: '. mysqli_connect_error());
mysqli_set_charset($dbcon, 'utf8');
?>

Options: ReplyQuote


Subject
Written By
Posted
Re: What do you do with the database user passwords?
November 05, 2014 02:53PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.