RE: [PHP] Newbie question
| From: | Sam Masiello | Date: | Tue, 13 Jan 2004 15:46:30 +0000 |
| Subject: | RE: [PHP] Newbie question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-174457@lists.php.net to get a copy of this message | ||
It appears as if you don't have MySQL support compiled in with your PHP
build. If you installed it from source you will want to recompile PHP
with the --with-mysql option. I have never installed PHP from RPM
though so if you installed it that way, perhaps someone else in the
group can provide some guidance on how to do that.
HTH!
--Sam
James Marcinek wrote:
> 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