Reply to Re: php error

Your name:

Reply:


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]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация