undefined function Mysql_connect()

undefined function Mysql_connect()

am 04.01.2008 15:16:48 von moravec

------=_NextPart_000_0059_01C84EE4.D36F83F0
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: 7bit

Hi,

I am using (trying to use) Mysql_connect () function in my scripts and =
it=B4s not working...



When I will try to use this example:




$link =3D mysql_connect("localhost", "root")

or die("Couldn=B4t connect");

print ("Connected");

mysql_close($link);

?>



It will do nothing in browser, and when I try to look at "preview" in
application HTML-Kit, which I use for script writing, it prints:



PHP Fatal error: Call to undefined function Mysql_connect().



Probably this message is reason of bad installation or some problem with
setup of PHP I guess, but...

I do not know how to solve this problem.



I am running Windows XP PRO,

Appache 2.0

PHP 5.2.5 as a module,

And MYSql 5.0 as a service...



Do you have any idea how to solve this problem?



Thanx Lukas




------=_NextPart_000_0059_01C84EE4.D36F83F0--

Re: undefined function Mysql_connect()

am 06.01.2008 23:45:31 von dmagick

> I am running Windows XP PRO,
>
> Appache 2.0
>
> PHP 5.2.5 as a module,

Did you install the php-mysql module too ?

http://www.php.net/manual/en/ref.mysql.php

Look under the "Installation on Windows Systems" section.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php