-
-
Save anonymous/e263e35f49058f7d8fb2 to your computer and use it in GitHub Desktop.
はてな質問用
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
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