Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
images / profile/950baasfaa88c.jpgなどのユーザー画像へのパスを保存するデータベースがあります。これを変数に入れて画像タグで囲むと、画像自体ではなく、空白の画像のみが表示されます...
$profile_picture = $row['profile_image']; <img src="'.$profile_picture.'" width=50 height=50 />
PHPをエコーしていません
<img src="'.$profile_picture.'" width=50 height=50 />
する必要があります
<img src="<?= $profile_picture ?>" width=50 height=50 />
値をエコーアウトする必要があります
<img src="<?php echo $row['profile_image']; ?>" width=50 height=50 />
a<b<cstandard を使用せずにこれを条件として使用できるかどうかを知りたいと思いましたa<b and b<c。それで私はそれを試してみました、そして私のテスト結果は合格しました。
a<b<c
a<b and b<c
a = 1 b = 2 c = 3 assert(a<b<c) # In bounds t