i found error when posting data i am new to php. so help
<?php
$db_host = “localhost”;
$db_user = “”;
$db_pwd = “”;
$db_name = “uh”;
mysql_connect($db_host, $db_user, $db_pwd);
mysql_select_db($db_name);
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die (‘Error connecting to mysql’);
mysql_select_db($db_name);
$field1 = $_POST[“name”];e
$field2 = $
if (isset($db_name)) {
// if the product name contains something, meaning that
// the form was submitted, so process it
$strSQL = “INSERT INTO employee (name, desc) Values (’” . $field1 . “’,'” . $field1″’)” ;
$strResult = mysql_query($strSQL) or die(mysql_errno() . ” : ” . mysql_error() . ” <strong>Insert Failed for Some Reason</strong>”);
}
?>
////////////////////////////
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “
<html xmlns=”
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Untitled Document</title>
</head>
<body>
<form id=”form1″ name=”form1″ method=”post” action=”tst.php”>
<label>
<input type=”text” name=”name” id=”name” />
</label>
<p>
<label>
<input type=”text” name=”desc” id=”desc” />
</label>
</p>
<p>
<label>
<input type=”submit” name=”save” id=”save” value=”Submit” />
</label>
</p>
</form>
</body>
</html>