Re: Newbie question

From: Date: Wed, 14 Jan 2004 02:20:08 +0000
Subject: Re: Newbie question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174508@lists.php.net to get a copy of this message
it sounds like maybe you dont have the mysql php extension turned on in the php ini file, or your php doesnt have mysql support? Luke "James Marcinek" <jmarc1@jemconsult.biz> wrote in message news:33128.20.4.63.57.1074008237.squirrel@srv01.jemconsult.biz... > Hello Everyone, > > I'm new to this so forgive my ignorance. I'm trying to use php with MySQL > as a database. I'm using apache 2.0 in addition to Mysql 4.1. > > I created a simple page (using book to learn) and when I try to go to a > simple php script I recieve the following error: > > Call to undefined function: mysql_connect() > > I've followed the instructions and the mysql_connect() function has the > correct arguments supplied ("host", "user", "passwd"); > > Can anyone shed any light on this? I've looked at the php.ini file and it > looks ok. the apache has the php.conf file in the conf.d directory. > > The book I'm learning from had some simple examples pages that I created > early on and they work; however this is the first attempt at trying to use > php to connect. > > Any help would be appreciated. > > Thanks, > > James

« previous php.general (#174508) next »