I am getting parse error on line no. 43
Fatal error: Call to undefined function: pg_exec() in /usr/local/apache/www/1.php on line 43
mysql_select_db("db");
#@$ok = mysql_select_db("$database");
$query = "insert into customers (name, last, email, street, city, zip, state, phone, month, day, year, customerid) values
('$name', '$last', '$email', '$street', '$city', '$zip', '$state', '$phone', '$month', '$day', '$year', '' )";
#$result = mysql_query($query);
$result = pg_exec("select name from customers (LINE NO. 43)
name = '$name'
and street = '$street'
and zip = '$zip'
and month = '$month'
and day = '$day'");
if (pg_NumRows($result) == 0 )
{
$result = mysql_query($query);
} else {
print "data alreay in database\n";
}
die('MySQL error: ' . mysql_error() . '<br>Query: ' . $query);
if (!$name || !$last || !$street || !$city || !$zip || !$month || !$day )
{
echo " You have not entered all the required details.<br>"
."Please go back (Use your Browser back button) and try again.";
exit;
}
if ($result)
echo mysql_affected_rows(). " member added to Club.";
?>
</body>
(LINE NO. 43)