Ryan, Eric,

> Did u compile PHP with mysql support enabled?as in did your configure
line
> have something like this ./configure --with-mysql=/path/to/mysql?

You can test this by writing a file (named whatever you want, I call it
phpinfo.php) with one single line like this:

<?=phpinfo()?>

Check in your browser, like http://localhost/phpinfo.php, and it should
tell you if MySQL support is enabled.

Regards,
--
  Stefan Hinz <[EMAIL PROTECTED]>
  Geschäftsführer / CEO iConnect GmbH <http://iConnect.de>
  Heesestr. 6, 12169 Berlin (Germany)
  Tel: +49 30 7970948-0  Fax: +49 30 7970948-3

----- Original Message -----
From: "Kamara Eric R-M" <[EMAIL PROTECTED]>
To: "Ryan McDougall" <[EMAIL PROTECTED]>
Cc: "mysql" <[EMAIL PROTECTED]>; "RedHat 8.0 Psyche"
<[EMAIL PROTECTED]>
Sent: Saturday, January 18, 2003 5:26 PM
Subject: Re: MySQL & PHP


> Hello Ryan,
>
> Did u compile PHP with mysql support enabled?as in did your configure
line
> have something like this ./configure --with-mysql=/path/to/mysql?
>
> Regards,
> Eric
>
> ===============================
> Kamara Eric Rukidi Mpuuga
> Computer Frontiers International
> Plot 32 Lumumba Avenue
> P.O Box 12510,Kampala
> Tel  :256-41-340417/71
> Email:[EMAIL PROTECTED]
> Web  :http://www.cfi.co.ug
>
> On Sat, 18 Jan 2003, Ryan McDougall wrote:
>
> > hello all,
> >
> > I'm posting on 2 lists because I'm not sure were the problem is, so
I'm hoping
> > that some one can help me out.
> >
> > I'm running a stock RH8 machine running amongst other things MySQL
3.23.52-3,
> > Apache 2.0, PHP 4.2.2-8.0.5 When I try a simple php script that is
this
> > (sensitive information changed to protect me):
> >
> > <html>
> > <head><title>My PHP test file</title></head>
> > <body>
> > <?php
> >         $link = mysql_connect ("localhost", "user", "password")
> >                 or die ("Could not connect");
> >         print ("Connected successfully");
> >         $query = "SELECT * FROM who";
> >         $result = mysql_db_query ("mcdougrsMedia", $query)
> >                 or die ("Query failed");
> > ?>
> > </body>
> > </html>
> >
> > The page produces the following output:
> >
> > Fatal error: Call to undefined function: mysql_connect() in
> > /home/username/public_html/testing.php on line 5
> >
> > Can you guys see what is wrong... or if there is other information
that is
> > needed that isn't there please let me know and I will post whatever
information
> > is needed to fix it.
> >
> > TIA,
> > Ryan
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > http://mailplus.yahoo.com
> >
>
> ---------------------------------------------------------------------
> > Before posting, please check:
> >    http://www.mysql.com/manual.php   (the manual)
> >    http://lists.mysql.com/           (the list archive)
> >
> > To request this thread, e-mail <[EMAIL PROTECTED]>
> > To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> > Trouble unsubscribing? Try:
http://lists.mysql.com/php/unsubscribe.php
> >
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to