質問編集履歴
1
while文を付け加えた
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,7 +30,11 @@
|
|
30
30
|
|
31
31
|
$result=mysqli_query($link,"SELECT id,name,address FROM sample1 WHERE name='あいうえお'");
|
32
32
|
|
33
|
-
$row=mysqli_fetch_assoc($result)
|
33
|
+
while($row=mysqli_fetch_assoc($result)){
|
34
|
+
|
35
|
+
$count++;
|
36
|
+
|
37
|
+
}
|
34
38
|
|
35
39
|
|
36
40
|
|
@@ -44,6 +48,8 @@
|
|
44
48
|
|
45
49
|
print $row['id'];
|
46
50
|
|
51
|
+
//idの部分を数字に変えたい!!!!
|
52
|
+
|
47
53
|
}
|
48
54
|
|
49
55
|
?>
|