But, as you can see, only one template is shown. I want to be able to show all the templates in the [1] array or [2] array or whatever number the skin id is. Here is the code I have so far:
$value = $db->query("SELECT * FROM fcc_templates");
while ($cache1 = $db->fetch_array_assoc($value)){
and the serialization seperates each template into its own array. I want each template to be part of the entire skinid array, not it's own big array. Here is what it looks like:
hello danny,
from your example i think it will be harder to serialize and unserialize the array. it's because your records in the database is not properly nested.
from your query:
from your table structure:
[skin_id] is not primary index
which means that you can't automatically assign proper depth of your array since there would be the same level of your array.
solution:
serialization should be done after the loop. PHP function "array_key_exists" would be a nice friend in expanding your array to your desired structure.
example comes later. i'm sure you can solve this problem..
__________________
just an ignorant noob with moronic solution...