You are here: Re: mysql_connect() undefined « PHP « IT news, forums, messages
Re: mysql_connect() undefined

Posted by Schraalhans Keukenmeester on 10/30/05 22:13

jbo wrote:
> When I try this in a php script :
> $conn = mysql_connect("localhost", "joeuser", "joeuser");
> I get this error message:
> PHP Fatal error: Call to undefined function mysql_connect() in
> C:\Inetpub\wwwroot\test.php on line 5
> My system :
> w2K Pro. running IIS 5.0,
> MySQL is version is 4.4.14nt
> php is 5.0.5
> I can access web pages, run the mysql monitor and do sql commands and php
> works I think because I can do a phpinfo() and get all the php system info.
>
> What am I missing?
>
>
Is PHP configured with mysql support enabled ? My phpinfo() reveals:
Configure Command './configure' '--with-mysql=/usr/local/mysql'
'--with-apache=../apache_1.3.33' '--enable-safe-mode'

Of course your box is windows, but something similar should be present I
suppose. If not sure, check www.php.net for use with mysql.

Sh

 

Navigation:

[Reply to this 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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация