This error means that mysql is not installed.  Or that the module which
links PHP and mysql is not installed.  I ahd the same error in my RedHat 5.2
machine.  Unfortunately, there was no RPM for to provide this
interconnectivity between PHP and MySQL.  I upgraded to RedHat 7.0;
installed the MySQL, Apache w/PHP, and php-mysql RPMS.  Everything works
like a charm now.

rick
-----Original Message-----
From: Irwan Agustian [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 11:50 PM
To: Gigi Sze
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] please help




you need password to connect to the mysql
maybe you must check to this URL 
http://hotwired.lycos.com/webmonkey/99/21/index2a_page6.html?tw=programming


regards
 
On Mar 12 Gigi Sze nulis:

> Date: Mon, 12 Mar 2001 14:48:56 +0800
> From: Gigi Sze <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] please help
> 
> hi, everyone ...
> 
> this's my first time to write php program.
> 
> and i've try to execute the following code:
> 
> <?php
> 
> $link = mysql_connect("localhost", "gigi", "");
> 
> mysql_select_db("cus_db");
> 
> $query = "select count(*) from customer";
> 
> $result = mysql_query($query, $link);
> 
> if ($row=  mysql_fetch_array($result))
> 
>     echo "the table cus has ".$row[0]." members.";
> 
> mysq_free_result($result);
> 
> ?>
> 
> but it show:
> 
> Fatal error: Call to unsupported or undefined function mysql_connect() in
/home/httpd/html/test.php3 on line 2
> 
> i don't understand.
> 
> please help
> 
> Gigi
> 


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to