Posted by Kim Andrι Akerψ on 02/12/06 00:25
newbie wrote:
> now i am getting a different error..but i think we getting close, this
> is the new error msg:
>
>
> Fatal error: Call to undefined function mysql_connect() in
> C:\webroot\temp_con.php on line 9
>
>
> this is the code:
>
> <?php
>
> echo $_SERVER['DOCUMENT_ROOT']."/db_config.php\n";
> echo $_SERVER["DOCUMENT_ROOT"]."/db_config.php\n";
> flush();
> require($_SERVER['DOCUMENT_ROOT']."/db_config.php");
>
>
> $connection = mysql_connect($db_host,$db_user,$db_password) or
> die ("no connection");
> echo "connection established";
>
> ?>
>
> i appreciate all of your help
I'm guessing that you're using a PHP version for Windows that doesn't
have MySQL builtin, and the MySQL extension DLL hasn't been loaded.
Check your php.ini configuration file and enable it there.
You'll probably find php.ini either in c:\php or in your Windows
directory.
--
Kim AndrΓ© AkerΓΈ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
[Back to original message]
|