Re: Agh! Driving me crazy!

From: Date: Wed, 18 Jun 2003 23:03:24 +0000
Subject: Re: Agh! Driving me crazy!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152084@lists.php.net to get a copy of this message
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. | `---------------------------------------------'

« previous php.general (#152084) next »