This code inserts into mysql database
$insertSQL = sprintf(“INSERT INTO tbl_Orders (OrderNumber, OrderDate, RequiredDate, fk_TrophyCode, TrophyQty, ClientID, Supplier, Customer, Freight) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)”,
GetSQLValueString($_POST[‘OrderNumber’], “text”),
GetSQLValueString($_POST[‘OrderDate’], “date”),
GetSQLValueString($_POST[‘RequiredDate’], “date”),
GetSQLValueString($_POST[‘TrophyCode’], “text”),
GetSQLValueString($_POST[‘TrophyQty’], “int”),
GetSQLValueString($_POST[‘ClientID’], “int”),
GetSQLValueString($_POST[‘Supplier’], “text”),
GetSQLValueString($_POST[‘Customer’], “text”),
GetSQLValueString($_POST[‘Freight’], “text”));