It should be obvious that if more than one you need to setup a foreach loop.
And handle if one is empty.
if (empty($row->your_pic)) {
echo ""; // or a default // or however you need
} else {
// display the image
}
If you are new to this stuff, I’d highly advise finding and taking some basic html, php, css, and JS tutorials.