RJK wrote: > On Tue, Jun 15, 1999 at 06:22:54PM -0400, mjd-list-fwp@plover.com wrote: > > > > I agree. I would suggest: > > > > $query = (unindent ($quantity < 1) ? <<"" : <<""); > > > > DELETE FROM Contents > > WHERE cartnum = '$cartnum' > > AND itemid = '$itemid'; > > > > UPDATE Contents > > SET quantity = $quantity > > WHERE cartnum = '$cartnum' > > AND itemid = '$itemid'; > > > > > > Except that those lines should actually be blank, rather than having > invisible whitespace (which my editor seems to drop in the quoting), and > there cannot be a blank line after the first line, since that terminates > the first here-doc as an empty string. Umm, wouldn't everything work out nicely if that first "blank" line contained some whitespace, while the 2nd and 3rd were empty? Maybe that's what MJD intended. JDP ==== Want to unsubscribe from this list? (Don't you love us anymore?) ==== Well, if you insist... Send mail with body "unsubscribe" to ==== fwp-request@technofile.org