Code Comments
Programming Forum and web based access to our favorite programming groups.this piece of php:
<?php
require($_SERVER["DOCUMENT_ROOT"]."/config/db_config.php");
$connection = mysql_connect($db_host, $db_user, $db_password) or die("Error
connecting");
echo "Connection made!";
?>
presents me with a blank page. It's picking up the variables ok from db_conf
ig.php, because if I replace
the;
$connection = mysql_connect($db_host, $db_user, $db_password) or die("Error
connecting");
echo "Connection made!";
lines to just echo the host, user and password, they all appear on screen fi
ne.
I'm using Mysql 4.0.1.8-nt with Apache2 webserver and PHP5
I'm new to this and i'm guessing that MySQL, apache or PHP is mis-configured
somewhere.... but I can't
track it down.
Any help appreciated.
All the Best,
John
<< In Birmingham - The Industrial Riviera..! >>
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.