$dropdown
配列が空なのはなぜですか?
コピーはしていませ$p
ん
foreach($p as $pat)
{
print'<pre>';
print_r($pat['name']);
print'</pre>';
$c = Jojo::selectQuery("SELECT * FROM {cat} WHERE {parentid} =?", array($pat['categoryid']));
foreach($c as $cat)
{
print'<pre> ';
print_r($cat['name']);
print'</pre>';
}
$dropcat = array();
$dropcat[$cat[$pat['categoryid'][0]] = $pat['id']];
print_r($dropcat);
}