Code: Select all
array(
"product_code" => "123-aaa",
"product_description" => "milk",
"product_price" => '$2.00',
"product_active" => "1",
"product_imageurl_big" => "img/milk_big.gif",
"product_imageurl_small" => "img/milk_small.gif"
)currently with other parts of the code, i check the database for the number, and use that number when doing other things, and it works quite well... but this one seems to have a problem since it is setup differently i can't use a while loop in the array creation, how can I set a name for the item name in the array? something like array_push, but from what i understand, you can't name the array item you are creating. Is there some other method that would make this possible? thank you for any help with this problem.