質問編集履歴

3

var_dumpをコードに追加しました。

2021/04/07 04:31

投稿

dotnet
dotnet

スコア25

test CHANGED
File without changes
test CHANGED
@@ -208,6 +208,30 @@
208
208
 
209
209
 
210
210
 
211
+ var_dump($row)を加筆しました
212
+
213
+ ```
214
+
215
+ <?= var_dump($row) ?>
216
+
217
+ <tr>
218
+
219
+ <td><?= e($row['id']) ?></td>
220
+
221
+ <td><?= e($row['text1']) ?></td>
222
+
223
+ <td><?= e($row['text2']) ?></td>
224
+
225
+ <td><?= e($row['text3']) ?></td>
226
+
227
+ ```
228
+
229
+ ![var_dumpの結果](14c6d27da695b1d60e8661347fa96d18.png)
230
+
231
+
232
+
233
+
234
+
211
235
  ### 試したこと
212
236
 
213
237
 

2

出力箇所で利用しているeの内容を加筆しました。

2021/04/07 04:31

投稿

dotnet
dotnet

スコア25

test CHANGED
File without changes
test CHANGED
@@ -192,6 +192,22 @@
192
192
 
193
193
 
194
194
 
195
+ 出力箇所で利用しているeの内容
196
+
197
+ ```
198
+
199
+ <?php
200
+
201
+ function e(string $str, string $charset = 'UTF-8'): string{
202
+
203
+ return htmlspecialchars($str, ENT_QUOTES | ENT_HTML5, $charset);
204
+
205
+ }
206
+
207
+ ```
208
+
209
+
210
+
195
211
  ### 試したこと
196
212
 
197
213
 

1

以上出力時のブラウザソースを加筆しました。

2021/04/07 02:46

投稿

dotnet
dotnet

スコア25

test CHANGED
File without changes
test CHANGED
@@ -146,6 +146,52 @@
146
146
 
147
147
 
148
148
 
149
+ 2枚目キャプチャ出力時のソース
150
+
151
+ ```
152
+
153
+ <html>
154
+
155
+
156
+
157
+ <head>
158
+
159
+ <meta http-equiv="content-type" charset="utf-8">
160
+
161
+ </head>
162
+
163
+ <dl>
164
+
165
+ <div style="display:inline-flex">
166
+
167
+ </div>
168
+
169
+ </dl>
170
+
171
+ <table border="1">
172
+
173
+ <tr>
174
+
175
+ <th style="width:100px">id</th>
176
+
177
+ <th style="width:300px">text1</th>
178
+
179
+ <th style="width:300px">text2</th>
180
+
181
+ <th style="width:300px">text3</th><br>
182
+
183
+ </tr>
184
+
185
+ <tr>
186
+
187
+ <td>5</td>
188
+
189
+ <td>
190
+
191
+ ```
192
+
193
+
194
+
149
195
  ### 試したこと
150
196
 
151
197