Results 1 to 3 of 3

Thread: help with mulidimensional arrays

  1. #1
    Frontpage User
    Join Date
    Mar 2010
    Posts
    1
    Post Thanks / Like

    Default help with mulidimensional arrays

    hi all. my first post here.

    I am working on a project that requires the use of mulidimensional arrays and I am stumped about how to go about it.

    Basically I need to construct a html table that allows the end user to input data.

    MySQL table.
    +++++++++++++++++++++++++++++++++++++
    -ID |--DrugClass--|--DrugName-|-DrugMaker---|
    | 1 | A, B, C, D, E | a, b, c, d, e | txt |
    +++++++++++++++++++++++++++++++++++++

    Based on this data I need to be able to create a table for data input.
    envisioned <HTML TABLE>
    -----------------------------------------------
    | | A | B | C | # DrugName row
    -----------------------------------------------
    | a | Y | blank | N |
    -----------------------------------------------
    | b | Y | Y | Y |
    -----------------------------------------------
    | c | N | Y | blank |
    -----------------------------------------------
    DrugName Col.

    In this case,
    first row would be: |A | blank | C
    second row would be: |A | B | C
    third row would be: |A| B | blank
    (actually I am not sure if this would be correct.)

    Can you help me with this?

  2. #2
    Senior Member louie's Avatar
    Join Date
    Jan 2006
    Location
    Dublin, Ireland
    Posts
    2,423
    Post Thanks / Like

    Default

    your post is very vague.
    have a look into explode.
    :. Web Design & Development Web Design Ireland
    :. Search Engines Optimization Search Engines Optimization
    :. Car Parts & Accessories Car Parts
    :. Cars Ireland Cars Ireland
    :. I Have 2 Find It Directory SEF Directory

  3. #3
    Frontpage User
    Join Date
    Sep 2009
    Location
    Waterford
    Posts
    24
    Post Thanks / Like

    Default

    It is vague alright and you would be using a form to enter data and a table to display it?

    Do you need to create rows and columns on the fly?

Similar Threads

  1. PHP Sorting Arrays - Help!
    By Tom in forum Coding Help
    Replies: 3
    Last Post: 16-07-2009, 06:29 PM
  2. Inserting PHP multidimensional arrays into a mySQL database
    By Ciarán Mc Cann in forum Coding Help
    Replies: 15
    Last Post: 03-08-2007, 06:15 PM
  3. Passing arrays through pages
    By daryllsheridan in forum Coding Help
    Replies: 4
    Last Post: 01-04-2007, 11:19 AM

Visitors found this page by searching for:

No visitors have come to this page from a search engine, yet!

Tags for this Thread

Posting Permissions

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