次のコードを統合したいと思います。私はリストから終わるすべてのテーブルからSELECT *を参照する方法がわかりませんが。事前に'任意の'変数のコード?
$this->displaylistings=mysql_query("SELECT * FROM nordstromlisting WHERE ShopperID = '$this->ShopperID'
UNION ALL SELECT * FROM saksfifthavenuelisting WHERE ShopperID = '$this->ShopperID'
UNION ALL SELECT * FROM guesslisting WHERE ShopperID = '$this->ShopperID'
UNION ALL SELECT * FROM gnclisting WHERE ShopperID = '$this->ShopperID'
UNION ALL SELECT * FROM urbanoutfitterslisting WHERE ShopperID = '$tnis->ShopperID'
UNION ALL SELECT * FROM bananarepubliclisting WHERE ShopperID = '$this->ShopperID'
UNION ALL SELECT * FROM americaneaglelisting WHERE ShopperID = '$this->ShopperID'
UNION ALL SELECT * FROM neimanmarcuslisting WHERE ShopperID = '$this->ShopperID'
UNION ALL SELECT * FROM footlockerlisting WHERE ShopperID = '$this->ShopperID'");
ありがとう:D
+1を私から。あなたはテーブルを正常化するべきです。 – Timotei