Fatal error: Call to undefined function: () in add2.php on line 11
| From: | jim and lois flaherty | Date: | Tue, 27 Feb 2001 01:33:08 +0000 |
| Subject: | Fatal error: Call to undefined function: () in add2.php on line 11 | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-6970@lists.php.net to get a copy of this message | ||
help , I have this problem
I have redhat 7.0
mysql 3.23
and php-mysql rpm installed
my code
<html>
<head>
<title>Flaherty Family Page</title>
</head>
<?
// connect to server
$mysql_link = mysql_connect("localhost", "user","password");
$mysql_select_db("resume");
$query = "insert into employer(name,add1,add2,city,state)";
$query =
$query."values('$name','$add1','$add2','$city','$state')";
$mysql_result = mysql_query($query, $mysql_link);
my line 11 is mysql_connect
please let me know what I am doing wrong