From: <ex...@us...> - 2016-05-06 03:29:24
|
Revision: 7508 http://sourceforge.net/p/web-erp/reponame/7508 Author: exsonqu Date: 2016-05-06 03:29:21 +0000 (Fri, 06 May 2016) Log Message: ----------- 05/06/16: Exson: Remove the $db which is not needed now. Reported by Tim. Modified Paths: -------------- trunk/CollectiveWorkOrderCost.php Modified: trunk/CollectiveWorkOrderCost.php =================================================================== --- trunk/CollectiveWorkOrderCost.php 2016-05-06 03:26:11 UTC (rev 7507) +++ trunk/CollectiveWorkOrderCost.php 2016-05-06 03:29:21 UTC (rev 7508) @@ -182,7 +182,7 @@ $ErrMsg = _('No items were returned by the SQL because'); $DbgMsg = _('The SQL used to retrieve the searched parts was'); - $StockItemsResult = DB_query($SQL,$db,$ErrMsg,$DbgMsg); + $StockItemsResult = DB_query($SQL,$ErrMsg,$DbgMsg); } if (isset($_POST['StockID'])){ @@ -212,7 +212,7 @@ AND locationusers.canview=1 WHERE locations.usedforwo = 1"; - $resultStkLocs = DB_query($sql,$db); + $resultStkLocs = DB_query($sql); while ($myrow=DB_fetch_array($resultStkLocs)){ if (isset($_POST['StockLocation'])){ @@ -281,7 +281,7 @@ FROM stockcategory ORDER BY categorydescription"; - $result1 = DB_query($SQL,$db); + $result1 = DB_query($SQL); echo '<table class="selection"> <tr> @@ -425,7 +425,7 @@ } //end not order number selected $ErrMsg = _('No works orders were returned by the SQL because'); - $WorkOrdersResult = DB_query($SQL,$db,$ErrMsg); + $WorkOrdersResult = DB_query($SQL,$ErrMsg); /*show a table of the orders returned by the SQL */ if (DB_num_rows($WorkOrdersResult)>0) { |