Mittineague & mjpr
Thank you both for taking the time to respond.
@ Mittineague…
Your explanation helped me realize that I only needed to put the ‘attributes’ fields within the while(). So, this has been solved - thank you.
@ Mittineague & mjpr…
What I still do not understand is how to selectively retrieve array data. If I were to place the $results in an array …
$all_array = array();
$result = mysql_query($query) or die(mysql_error());
while ($row = mysql_fetch_array($result)) {
array_push($all_array,$row);
}
I get what’s below. There is a lot more, but I cut it off for the sake of of space…
Array ( [0] => Array ( [0] => 764 [RecordID] => 764 [1] => 5099858 [ProductNumber] => 5099858 [2] => ALE [Prefix] => ALE [3] => 36650 [StockNumber] => 36650 [4] => ALERA [MFRName] => ALERA [5] => 36 [MFRId] => 36 [6] => 201 [BrandId] => 201 [7] => 40799 [SkuGroupId] => 40799 [8] => 63 [ProductClassId] => 63 [9] => L [AssemblyCode] => L [10] => N [RecycleInd] => N [11] => N [EPACPGCode] => N [12] => N [MSDSInd] => N [13] => Y [StatusCode1] => Y [14] => Includes locking cabinet, three-outlet power strip [PackageIncludes] => Includes locking cabinet, three-outlet power strip [15] => Adjustable Steel Monitor Cart w/Cabinet, 4-Shelf, 28 x 24 x 56, Black [LongItemDesc] => Adjustable Steel Monitor Cart w/Cabinet, 4-Shelf, 28 x 24 x 56, Black [16] => ALE36650_1_1.JPG [ItemImage] => ALE36650_1_1.JPG [17] => NOA.JPG [ItemAltImage] => NOA.JPG [18] => Y [ItemStatus] => Y [19] => F [NonReturnableCode] => F [20] => N [SmallPackageInd] => N [21] => [ValuePack] => [22] => Adjustable Steel Monitor Cart;ALERA;Monitor Cart;Steel Monitor Cart [Keywords] => Adjustable Steel Monitor Cart;ALERA;Monitor Cart;Steel Monitor Cart [23] => N [WarrantyInd] => N [24] => [WarrantyComments] => [25] => A [ShipClassCode] => A [26] => Y [GreenInd] => Y [27] => [GreenInfo] => [28] => 1049 [ListAmount] => 1049 [29] => EA [InventoryUnit] => EA [30] => 108 [ItemWeight] => 108 [31] => 31 [ItemWidth] => 31 [32] => 0 [ItemLength] => 0 [33] => 38 [ItemHeight] => 38 [34] => 0 [BoxWeight] => 0 [35] => 0 [BoxWidth] => 0 [36] => 0 [BoxLength] => 0 [37] => 0 [BoxHeight] => 0 [38] => EA [BoxUOM] => EA [39] => 108 [CartonWeight] => 108 [40] => 31 [CartonWidth] => 31 [41] => 27 [CartonLength] => 27 [42] => 38 [CartonHeight] => 38 [43] => EA [CartonUOM] => EA [44] => 2147483647 [UPCRetail] => 2147483647 [45] => 5099858 [46] => ALE [47] => 36650 [48] => 21 [AttributePriority] => 21 [49] => Adjustability [AttributeName] => Adjustability [50] => Height adjusts from 40" to 56". [AttributeValue] => Height adjusts from 40" to 56". [51] => Alera� [BrandName] => Alera� [52] => ALERA_LOGO.JPG [BrandLogo] => ALERA_LOGO.JPG [53] => 764 [54] => 5099858 [55] => ALE [56] => 36650 [57] => Alera® Adjustable Steel Monitor Cart with Power S [SkuGroupName] => Alera® Adjustable Steel Monitor Cart with Power S [58] => 40799 [59] => Black adjustable steel monitor cart has three-outlets, 25 ft. cord and casters. [SummarySellingStatement] => Black adjustable steel monitor cart has three-outlets, 25 ft. cord and casters. [60] => Holds monitors up to 27" wide. [SellingPoint1] => Holds monitors up to 27" wide. [61] => Height adjusts for personal viewing levels. [SellingPoint2] => Height adjusts for personal viewing levels. [62] => Wheels enable mobility with ease. [SellingPoint3] => Wheels enable mobility with ease. [63] => Nonfuming. [SellingPoint4] => Nonfuming. [64] => For wood, asphalt, linoleum, vinyl, vinyl composition, rubber, terrazzo, concrete and gymnasium floors. [SellingPoint5] => For wood, asphalt, linoleum, vinyl, vinyl composition, rubber, terrazzo, concrete and gymnasium floors. [65] => Treatment will not harm waxed or finished surfaces. [SellingPoint6] => Treatment will not harm waxed or finished surfaces. [66] => Floors will appear brighter and more lustrous. [SellingPoint7] => Floors will appear brighter and more lustrous. [67] => Wall or table mount. [SellingPoint8] => Wall or table mount. [68] => Optional battery back-up for printing during power outages. [SellingPoint9] => Optional battery back-up for printing during power outages. [69] => Requires time cards, sold separately. [SellingPoint10] => Requires time cards, sold separately. [70] => Height adjusts from 40" to 56". Holds monitors up to 27" wide. Three-outlet power strip with 25-ft. cord and storage bracket. 4" casters, two locking. [ShortSellingCopy] => Height adjusts from 40" to 56". Holds monitors up to 27" wide. Three-outlet power strip with 25-ft. cord and storage bracket. 4" casters, two locking. [71] => Height adjusts from 40" to 56". Holds monitors up to 27" wide. Three-outlet power strip with 25-ft. cord and storage bracket. 4" casters, two locking. [MediumSellingCopy] => Height adjusts from 40" to 56". Holds monitors up to 27" wide. Three-outlet power strip with 25-ft. cord and storage bracket. 4" casters, two locking. [72] => Height adjusts from 40" to 56". Holds monitors up to 27" wide. Three-outlet power strip with 25-ft. cord and storage bracket. 4" casters, two locking. [LongSellingCopy] => Height adjusts from 40" to 56". Holds monitors up to 27" wide. Three-outlet power strip with 25-ft. cord and storage bracket. 4" casters, two locking. [73] => Affordable white uncoated paper plates. Lightweight design allows plates to be use for multiple purposes. [ConsolidatedCatalogCopy] => Affordable white uncoated paper plates. Lightweight design allows plates to be use for multiple purposes. [74] => ALE36650_1_1.JPG [SkuGroupImage] => ALE36650_1_1.JPG [75] => NOA.JPG [SkuGroupAltImage] => NOA.JPG [76] => NOA.JPG [SkuGroupIcon] => NOA.JPG ) [1] => Array ( [0] => 764 [RecordID] => 764 [1] => 5099858 [ProductNumber] => 5099858 [2] => ALE [Prefix] => ALE [3] => 36650 [StockNumber] => 36650 [4] => ALERA [MFRName] => ALERA [5] => 36 [MFRId] => 36 [6] => 201 [BrandId] => 201 [7] => 40799 [SkuGroupId] => 40799 [8] => 63 [ProductClassId] => 63 [9] => L [AssemblyCode] => L [10] => N [RecycleInd] => N [11] => N [EPACPGCode] => N [12] => N [MSDSInd] => N [13] => Y [StatusCode1] => Y [14] => Includes locking cabin …
I do not understand how to pick & choose what I want out of this array. Also, because it’s in a while statement, it looks like each row is being called again for every attribute. Hopefully, that made sense???