View Single Post
Old 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
master3w is an unknown quantity at this point
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 is offline   Reply With Quote