Re: please help

From: Date: Tue, 13 Mar 2001 05:50:29 +0000
Subject: Re: please help
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-7377@lists.php.net to get a copy of this message
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 <gigi@me.com.hk> > To: php-db@lists.php.net > 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 >

« previous php.db (#7377) next »