Re: mysql_connect() undefined
- From: Schraalhans Keukenmeester <nomail@xxxxxxxxxx>
- Date: Sun, 30 Oct 2005 21:13:35 +0100
jbo wrote:
Is PHP configured with mysql support enabled ? My phpinfo() reveals: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?
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 .
- References:
- mysql_connect() undefined
- From: jbo
- mysql_connect() undefined
- Prev by Date: form to form transfer?
- Next by Date: Re: mysql_connect() undefined
- Previous by thread: mysql_connect() undefined
- Next by thread: Re: mysql_connect() undefined
- Index(es):
Relevant Pages
|