thincom2000
01-21-2007, 06:01 PM
I'm trying to use a datastore entry I created (the entry exists in the database in the datastore table) in a foreach() loop, but it tells me I have supplied an invalid argument for foreach()
Database record:
title = my_store
data = a:1:{i:1;s:6:"ITEM";}
unserialize = 1
$vbulletin->my_store = unserialize($vbulletin->my_store);
$store = $vbulletin->mystore;
foreach ($store AS $s)
{
$my_new_array[] = $s;
}
I've looked at tons of other examples from products I have installed and it seems to work fine everywhere else...
Database record:
title = my_store
data = a:1:{i:1;s:6:"ITEM";}
unserialize = 1
$vbulletin->my_store = unserialize($vbulletin->my_store);
$store = $vbulletin->mystore;
foreach ($store AS $s)
{
$my_new_array[] = $s;
}
I've looked at tons of other examples from products I have installed and it seems to work fine everywhere else...