I have the following sql statement using the global variable [gvloc]
SELECT
ic.INVID,
ic.ICPRTFormat,
ic.ICVendorNum,
ic.ICPartNum,
inventory.PartNum,
inventory.description,
inventory.price1,
inventory.avgcost,
inventory.ptnum,
inventory.subptnum,
inventory.pcdesc,
inventory.subpcdesc,
qoh.qqoh,
vendor.name
FROM
ic LEFT OUTER JOIN vendor ON ic.ICVendorNum = vendor.vendornum
LEFT OUTER JOIN inventory ON ic.INVID = inventory.INVID
LEFT OUTER JOIN qoh ON (ic.INVID = qoh.qINVID and qoh.qlocnum = [gvloc]) order by ic.icprtformat
I get the following error
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\NetMake\v7\wwwroot\scriptcase\app\rc_menu\ic_inq_grid\ic_inq_grid.php on line 503
Any help will be appreciated…