Thread
:
test to live with mysql_connect_db
View Single Post
12-01-2012, 12:47 AM
PM User
|
#
4
master3w
New to the CF scene
Join Date: Dec 2012
Location: India
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Keep one configuration file name config_db.php or any name when you want to connect database to outer pages just include it
config_db.php
$con=mysql_connect('localhost','root','pass')or die("Could not Connect");
$select=mysql_select_db('database name',$con);
after you test your site using localhost before upload it to server just change config_db.php values localhost, root,pass and database name
Last edited by master3w; 12-01-2012 at
12:50 AM
..
master3w
View Public Profile
Find More Posts by master3w