Code: Selecteer alles
$OR_Query = odbc_prepare($link,"INSERT INTO PortalRequest (OrderedBy,SiteID,CostCentreNbr,Remarks,ExternalReference,OrderRequestValue,Date)
VALUES (?,?,?,?,?,?,convert(datetime,?))") or die(odbc_error());
odbc_execute($OR_Query,array($_SESSION['user_data']['user_id'],
$_SESSION['form_site'],
$_SESSION['form_costcentre'],
$_POST['remarks'],
urlencode($_POST['ExtRef']),
$_POST['FormValue'],
date('m/d/Y H:i:s')
)
) or die(odbc_error());
Code: Selecteer alles
WARNING: odbc_execute() [function.odbc-execute]: SQL error: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error, SQL state 07001 in SQLExecute