我想从多个SQL查询中选择一个多维数组,因此不止一步。我想在这里做2.专栏:
$name=$r['Name'];
$second_attribute=$r['sec'];
while($i<$count_full){
if($daily_namedb[$i] == $name){
$daily_namedb[] = $second_attribute;
}
$i++;
}
答案 0 :(得分:0)
你可以试试这个
$name=$r['Name'];
$second_attribute=$r['sec'];
while($i<$count_full){
if($daily_namedb[$i] == $name){
$daily_namedb[$i][] = $second_attribute;
}
$i++;
}