#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Chicago, IL USA
    Posts
    48
    Rep Power
    18
    i'm trying to assign duplicate integers to an array within a class object i.e. '$this->items[$productid] = $productid;' this is nested inside a function 'add(&productid) {'. This won't add duplicate items like 17, 17. Any ideas on how to get it to?
  2. #2
  3. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    6
    Rep Power
    0
    This makes no sence at all

    why do $this->items[$productid]=$productid;?


    well maybe this will help:
    $this->items[$productid][$nextitem]=$productid



    ------------------
    Greetings lewi
  4. #3
  5. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    9
    Rep Power
    0
    Lewi, it makes no sense at all why you continue to be so rude.



    If problems "made sense" they wouldn't be problems. This forum is for problem solving, not for making people feel bad for having a problem. You need to check yourself.

    Dogg
  6. #4
  7. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    6
    Rep Power
    0
    "continue to be so rude."
    erm ?..
    i'm not trying to be rude.. just trying to
    help people over here.
    I'm only showing that it doesn't make sence to me at all, that is: i can't figure out
    what he actually wants.

    more offence against me, not being able to understand astrix, hmmz maybe the language difference is the problem

    but this conversation is off topic

    ------------------
    Greetings lewi

Similar Threads

  1. Uploading Files
    By vivekjain in forum ASP Programming
    Replies: 0
    Last Post: February 17th, 2004, 12:21 AM
  2. 2d array passed to a function
    By capaci in forum C Programming
    Replies: 1
    Last Post: February 13th, 2004, 10:54 PM
  3. Assigning a JSP array to a JavaScript Array
    By kjne8o in forum JavaScript Development
    Replies: 1
    Last Post: February 13th, 2004, 05:23 PM
  4. sort: find duplicate string elements in array
    By sciencelife in forum Java Help
    Replies: 3
    Last Post: January 27th, 2004, 02:29 PM
  5. array cannot be used as a function error:
    By helz in forum C Programming
    Replies: 7
    Last Post: January 20th, 2004, 12:21 PM

IMN logo majestic logo threadwatch logo seochat tools logo