#11495 [Com]: error: Mysql_connect() doesn't exist.

From: Date: Tue, 20 Jul 2004 15:06:56 +0000
Subject: #11495 [Com]: error: Mysql_connect() doesn't exist.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-62971@lists.php.net to get a copy of this message
ID: 11495 Comment by: doll-cartoon1082 at hotmail dot com Reported By: jonathonfitch at hotmail dot com Status: Bogus Bug Type: MySQL related Operating System: NT PHP Version: 4.0.5 New Comment: <a href=http://l-fulltime-pregnant.da.ru>cartoon doll</a> Previous Comments: ------------------------------------------------------------------------ [2001-06-14 20:12:20] sniper@php.net Your system must be severely fucked up because in the precompiled binaries provided at php.net the mysql support is builtin..ie. you can NOT be without mysql_connect().. Follow the instructions given in install.txt and all should be fine. Anyway, this is NOT a bug in PHP but you have done something wrong. ------------------------------------------------------------------------ [2001-06-14 17:05:48] jonathonfitch at hotmail dot com This is the error I'm getting: Fatal error: Call to unsupported or undefined function mysql_connect() in C:\Inetpub\wwwroot\test.php3 on line 3 This is the script: <? $link = mysql_connect ("localhost", "username", "secret") or die ("Could not connect"); print ("Connected successfully"); mysql_close ($link); ?> I've tried both PHP 3 and PHP 4, both give me this error.... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=11495&edit=1

« previous php.bugs (#62971) next »