Skip to content

Instantly share code, notes, and snippets.

Created Aug 10, 2012
Embed
What would you like to do?
はてな質問用
<?
while ($row = mysqli_fetch_array($data)){
$id = $row['id'];
$item = $row['item'];
$name = $row['name'];
$kensaku[$id][$item] = $name;
foreach($kensaku as $id => $item){
foreach($item as $id2 => $val){
echo $id2.":".$val;
}
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment