Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
I don't really understand what your question is?
Do you need direction to make this, do you have some code that raise an error at some place ?
And could you try to summarize a bit please?
I you want to add values to an array, simply use
PHP Code:
$ary[]="new value";
This will do. If your array have more than 1 dimension though, you will need something like
PHP Code:
$idx=sizeof($ary); $ary[$idx]['dim1']='value 1'; $ary[$idx]['dim2']='value 2'; //... and so on
As the sizeof() return the number of elements (starting at 1) and the PHP index starts at 0, sizeof return directly the next available index value.
__________________
Only a biker knows why a dog sticks his head out the window.
|