[Weberp-svn] SF.net SVN: weberp:[4073] trunk/WorkOrderEntry.php
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2011-01-08 15:21:55
|
Revision: 4073 http://weberp.svn.sourceforge.net/weberp/?rev=4073&view=rev Author: tim_schofield Date: 2011-01-08 15:21:49 +0000 (Sat, 08 Jan 2011) Log Message: ----------- Correct the quotes in the sql literals Modified Paths: -------------- trunk/WorkOrderEntry.php Modified: trunk/WorkOrderEntry.php =================================================================== --- trunk/WorkOrderEntry.php 2011-01-08 15:21:39 UTC (rev 4072) +++ trunk/WorkOrderEntry.php 2011-01-08 15:21:49 UTC (rev 4073) @@ -443,7 +443,7 @@ } $_POST['Controlled'.$i] =$WOItem['controlled']; $_POST['Serialised'.$i] =$WOItem['serialised']; - $HasWOSerialNosResult = DB_query('SELECT * FROM woserialnos WHERE wo=' . $_POST['WO'],$db); + $HasWOSerialNosResult = DB_query("SELECT * FROM woserialnos WHERE wo='" . $_POST['WO'] . "'",$db); if (DB_num_rows($HasWOSerialNosResult)>0){ $_POST['HasWOSerialNos']=true; } else { @@ -457,7 +457,7 @@ echo '<tr><td class="label">' . _('Work Order Reference') . ':</td><td>' . $_POST['WO'] . '</td></tr>'; echo '<tr><td class="label">' . _('Factory Location') .':</td> <td><select name="StockLocation">'; -$LocResult = DB_query('SELECT loccode,locationname FROM locations',$db); +$LocResult = DB_query("SELECT loccode,locationname FROM locations",$db); while ($LocRow = DB_fetch_array($LocResult)){ if ($_POST['StockLocation']==$LocRow['loccode']){ echo '<option selected value="' . $LocRow['loccode'] .'">' . $LocRow['locationname'] . '</option>'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |