为什么我的$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);
}