Hi,
Can anyone see what is wrong with this? I cant find the right functions to remove the current element in an array and insert a new value in its place...
// if array already exists
if($pages)
{
// itterate through array
while (list($catnum, $howmany) = each ($pages))
{
// if the current page id is in the array
if ($id==$catnum)
{
// increment the current array element
$howmany++;
// remove the current array element
?????
// add the new value to the current array
??????
}
}
}