Simple php script syntax error?

tyrocx

New member
Not sure what I am doing wrong :( I have other scripts almost identical that are working fine.

<?php
include 'config.phps';
include 'opendb.phps';

$vOrder_ID = $_POST["sOrder_ID"];
$vDist_ID = $_POST["sID"];
$vTotal = $_POST["sTotal"];
$vShipping = $_POST["sShipping"];
$vProducts = $_POST["sOrdered_Prod"];
$vQuantities = $_POST["sOrdered_Q"];
$vPrices = $_POST["sOrdered_P"];
$vComments = $_POST["sComments"];

//mysql_query("INSERT INTO Dist_Orders (Order_ID, ID, Total, Shipping, Ordered_Q, Ordered_P, Ordered_Prod, Date, Comments) VALUES (" . $vOrder_ID . ", " . $vDist_ID . ", " . $vTotal . ", '" . $vShipping . "', '" . $vQuantities . "', '" . $vPrices . "', '" . $vProducts . "', NOW(), '" . $vComments . "')");
mysql_query("INSERT INTO Dist_Orders (Order_ID, ID) VALUES (" . $vOrder_ID . ", " . $vDist_ID . ");
if (!mysql_query($sql,$conn))
{
die('Error: ' . mysql_error());
}

include 'closedb.phps';
?>

Additional Details
Parse error: syntax error, unexpected $end in /test/bla.php on line 13
 
Back
Top