Associate
- Joined
- 5 Mar 2010
- Posts
- 572
- Location
- Eastbourne / Cape Town
Hey guys basically im so stuck, im creating a website with a database using phpmyadmin, im currently trying to figure out how to link the database to my registration page.. im using xamp and putting files into the htdocs folder but even with putting in
<?php
$db_host = "localhost";
$db_username = "root";
$db_pass = "";
$db_name = "register";
@mysql_connect ("$db_host","$db_username","$db_pass") or die ("could not connect to the database");
@mysql_select_db("$db_name") or die ("No database");
echo"Successful connection";
?>
its not showingg a preview... any ideas?
<?php
$db_host = "localhost";
$db_username = "root";
$db_pass = "";
$db_name = "register";
@mysql_connect ("$db_host","$db_username","$db_pass") or die ("could not connect to the database");
@mysql_select_db("$db_name") or die ("No database");
echo"Successful connection";
?>
its not showingg a preview... any ideas?