I am using the MySQL Input statement, but I keep getting the [B]unexpected T-String
Here’s the code:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “
<html xmlns=”
<head>
<title>Untitled Document</title>
</head>
<body>
<?PHP
$cust_id = $_POST[“cust_id”]; $item = $_POST[“description”]; $quantity = $_POST[“price”]; $comments = $
$link = mysql_connect(“localhost”, “rr_steve”, “eg555”) or die (“Access To DB Error”);
mysql_select_db(“rr_test”, $link) or die (“DB not selected”);
$pur = “INSERT INTO Purchasing (‘ID’, ‘Item’, ‘Description’, ‘Quantity’, ‘Price’, ‘Comments’) VALUES ($cust_id, $item, $description, $quantity, $price, $comments);”
mysql_query($pur);
?>
</body>
</html>