Skip to content

Instantly share code, notes, and snippets.

Created August 10, 2012 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e263e35f49058f7d8fb2 to your computer and use it in GitHub Desktop.
Save anonymous/e263e35f49058f7d8fb2 to your computer and use it in GitHub Desktop.
はてな質問用
<?
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