|
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]
|