Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database Error 1364 Field 'narrative'
07-20-2017, 06:20 AM,
#2
RE: Database Error 1364 Field 'narrative'
Your fix works, but to fix the sql the query at Line 213 should be:

$SQL = "INSERT INTO stockmoves (stockid,
type,
transno,
loccode,
trandate,
userid,
prd,
reference,
qty,
newqoh,
standardcost,
narrative)
VALUES ('" . $_SESSION['Adjustment' . $identifier]->StockID . "',
17,
'" . $AdjustmentNumber . "',
'" . $_SESSION['Adjustment' . $identifier]->StockLocation . "',
'" . $SQLAdjustmentDate . "',
'" . $_SESSION['UserID'] . "',
'" . $PeriodNo . "',
'" . $_SESSION['Adjustment' . $identifier]->Narrative ."',
'" . $_SESSION['Adjustment' . $identifier]->Quantity . "',
'" . ($QtyOnHandPrior + $_SESSION['Adjustment' . $identifier]->Quantity) . "',
'" . $_SESSION['Adjustment' . $identifier]->StandardCost . "',
'')";

This is caused by the sql_mode issue I mentioned in answer to your other post.

Tim
Reply


Messages In This Thread
RE: Database Error 1364 Field 'narrative' - by TimSchofield - 07-20-2017, 06:20 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)