please help
| From: | Gigi Sze | Date: | Mon, 12 Mar 2001 06:48:56 +0000 |
| Subject: | please help | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-7298@lists.php.net to get a copy of this message | ||
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