Mike At Spy wrote:
> 
> Anyone see anything wrong with this line of code?
> 
> $fine = mysql_query("INSERT INTO
> tblPOItems(poID,poItemUPC,poItemNumber,poItemDescription,poItemInnerCasePkg,
> poInnerQuantity,poItemEstQuantity,poItemCostEach,poItemSuggestedSellPrice)
> values('$poID', '$place[0]', '$inmb', '$ides', '$iicp', '$cases',
> '$place[1]', '$iice', '$isgs'");

I realize this problem has already been fixed, but if messy developers took
the time to format their code into something readable (my suggestion below)
then finding such trivial errors would be a walk in the park.

$fine = mysql_query
(
    "INSERT INTO tblPOItems "
   ."( "
   ."    poID, "
   ."    poItemUPC, "
   ."    poItemNumber, "
   ."    poItemDescription, "
   ."    poItemInnerCasePkg, "
   ."    poInnerQuantity, "
   ."    poItemEstQuantity, "
   ."    poItemCostEach, "
   ."    poItemSuggestedSellPrice "
   .") "
   ."values "
   ."( "
   ."    '$poID', "
   ."    '$place[0]', "
   ."    '$inmb', "
   ."    '$ides', "
   ."    '$iicp', "
   ."    '$cases',
   ."    '$place[1]', "
   ."    '$iice', "
   ."    '$isgs' "
);

Cheers,
Rob.
-- 
.---------------------------------------------.
| Worlds of Carnage - http://www.wocmud.org   |
:---------------------------------------------:
| Come visit a world of myth and legend where |
| fantastical creatures come to life and the  |
| stuff of nightmares grasp for your soul.    |
`---------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to