www.webdeveloper.com
Results 1 to 9 of 9

Thread: Placing arrays into a table PLEASE HELPP!!

Threaded View

  1. #1
    Join Date
    Apr 2014
    Posts
    4

    Placing arrays into a table PLEASE HELPP!!

    Trying to put these arrays into a table and am getting stuck and cant figure out what do do next? Any help would be awesome! thanks!!

    THis is the code i have so far

    What i need is a table of 12 columns and 11 rows showing: Code (as in the index of the product and price) and then product and then price. So it would be code,product,price,code,product,price,code,product,price,code,product,price

    if that makes sense....



    PRODUCT_LIST = new Array('Salad Server Set', 'Party Serviette Holder',
    'Tea Set', 'Mixing Bowl Set', 'Knife Block Set', 'Coffee Capsule Holder',
    'Plastic Sensor Soap Pump', 'Storage Bucket', 'Oven Glove', 'Apron',
    'Biscuit Barrel', 'Chopping Board', 'Carioca Cups', 'Soup Bowls',
    'Elevate Wood Turner', 'Pasta Machine', 'Teapot', 'Cake Pop Scoop',
    'Cookbook Stand', 'Chocolate Station', 'Coffee Maker', 'Pepper Mill',
    'Salt Mill', 'Glass Storage Jar', 'Measuring jug', 'Kitchen Scale',
    'Tenderiser', 'Pizza Docker', 'Knife Sharpener', 'Steel Cork Opener',
    'Steel Garlic Press', 'Steel Can Opener',
    'Stainless Steel Crank Flour Sifter', 'Mineral Stone Mortar and Pestle',
    'Citrus Cather', 'Cherry & Olive Pitter', 'Multi Grater-Detachable',
    'Stainless Steel Colander', 'Steel Pizza Pan', 'Pop Container');
    PRICE_LIST = new Array(18.70, 11.95, 39.95, 49.95, 99.95, 29.95, 79.95, 24.95,
    9.95, 29.95, 39.95, 12.95, 54.95, 43.00, 19.95, 144.95, 29.95, 9.95,
    29.95, 34.95, 29.00, 84.94, 84.95, 4.95, 19.95, 39.95, 34.95, 19.95,
    79.95, 36.95, 34.95, 36.95, 33.95, 74.95, 19.95, 27.95, 26.95, 44.95,
    12.95, 22.95);


    function renderProductCatalogue () {
    for(i=0,i<PRODUCT_LIST.length;i++);

    }
    Last edited by snow_life; 04-27-2014 at 05:01 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles