|
It would be easier to put the code in another file and include it. That way you can also protect direct access to the file.
in file connect.php
<?php
$mysqli = new mysqli('localhost','root','password07');
$mysqli->select_db('tassielans');
?>
in other files
include("safedir/connect.php");
Hope it helps
|