View Single Post
  #12 (permalink)  
Old 02-26-05, 10:17
moomin moomin is offline
Registered User
 
Join Date: Feb 2005
Posts: 2
Have followed all the instructions, all applications work when tested on their own (webserver, php test page and can log into and create mysql databases etc) but when i try and get php and my sql to talk i end up with a blank webpage using the following code.

DB_CONFIG

<?php
$db_host = "localhost";
$db_user = "root";
$db_password = "password i used whe installing and connecting to MYSQL in command prompt";
$db_name = "panthro";
?>

TEMP_CON.PHP

<?php
require($_SERVER["DOCUMENT_ROOT"]."/config/db_config.php");

$connection = mysql_connect($db_name, $db_user, $db_password) or die("Error - Cannot connect to MYSQL Database");
echo "Connected Successfully";
?>


Any ideas??
Reply With Quote