+ 2
Database
How to connect with database...?
2 Answers
0
If connection with mysql is required then:
<?php
$dbhost = 'localhost:3036';
$dbuser = 'root';
$dbpass = 'rootpassword'; mysql_connect($dbhost, $dbuser, $dbpass);
mysql_close($conn); ?>
0
pls stop use mysql_connect, this function is deprecated. .. use PDO like $db =new PDO(yourdriver:dbname=yourdbname;host=yourhost, user, pass)
look php.net PDO construct for more information