This is my php script:
<?
#Make connection to inventory database as odin
$connection = odbc_connect("inventory", "odin","asgard");
#Set field values in the Computers table based on user input
$query = "INSERT INTO TEST (Product,OperatingSystem,SerialNumber) VALUES ('$Product_VersionNumber','$Product_OperatingSystem','$Product_SerialNumber')";
#Insert all data in test table
odbc_do($connection, $query);
echo "According to what you just entered ";
echo "'$employee' has a '$Product_VersionNumber' with $Product_OperatingSystem' installed, Serial Number is '$Product_SerialNumber'.";
echo "The serial number is $Product_SerialNumber.";
echo " Please continue on to the next machine and have a great
day.";
?>
<html>
<body>
<p><a href="http://172.30.110.49">Click here to
return</a></p>
</body>
</html>
The script runs because I get the have a nice day stuff, but no data is posted to the database. I dont get any errors. Can someone point me in the right direction on this one? I am using PHP 4.03 and SQL server 2000. Also, this worked at my last job so I know its possible.