RE: [PHP] Help with multidimensional array setting up a mysql que ry..
| From: | Kurt Boyer | Date: | Tue, 15 Aug 2000 14:54:01 +0000 |
| Subject: | RE: [PHP] Help with multidimensional array setting up a mysql que ry.. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11817@lists.php.net to get a copy of this message | ||
>The problem is that the statements are printing out like:
>SELECT ABEPN, CABEPN, DESCRIPTION, QUANTITY, PRICE, from abeparts where
>ABEPN like PARTNUM
>SELECT GUDENPN, CGUDENPN, DESCRIPTION, PRICE, from gudenparts where GUDENPN
>like PARTNUM
>which is REALLY CLOSE to what I want. The problem is the last array
>element, (PRICE).. it adds the comma after it, which I understand why it
>does.
Couldn't you just do the following?
$subquery = ereg_replace(", from", " from", $subquery);
---
Kurt A. Boyer
Advanced Software Engineer
Matchlogic, Inc.
http://www.matchlogic.com