|
Posted by Jerry Stuckle on 02/11/06 23:41
newbie wrote:
> hi can anyone tell me why i am receiving error msg with this php script
>
>
> <?php
> require($_SERVER["DOCUMENT_ROOT"]."/config/db_config.php");
>
> $connection = mysql_connect($db_host,$db_user,$db_passwword) or
> die
> ("no connection");
> echo "connection established";
>
> ?>
>
>
> // this is the error message i am receiving.
>
> Parse error: syntax error, unexpected T_VARIABLE in
> C:\webroot\config\db_config.php on line 2
>
> // I am using apache webserver 2.0 and php version 4.0 thankyou very
> much
> for your help.
> // i am trying to access mysql database.
>
> anyhelp will be appreciated
>
> Marcus
>
Marcus,
It this file included by another one, perchance? If so, you may have
mis-matched quotes in that file.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|