two questions here: 1. I'm wondering what the correct way to write the following would be. As it is, it's pretty messy/unreadable:
$stmt = $pdo->query("SELECT first_name, last_name, headline FROM Profile");
while ( $row = $stmt->fetch(PDO::FETCH_ASSOC) ) {
echo('<div class="col-sm-9">
<div class="row">
<div class="col-sm-3">
<img class="img-rounded" src="img/left2.jpg">
<p class="caption">');
echo(htmlentities($row['first_name'].$row['last_name']'</p>');
echo( '</div>');
}
- Furthermore, I want to display uploaded images in the img tag within the echo statement provided above. I have copy & pasted file upload code provided by W3Schools found here: http://ift.tt/OfEuBn. How can I do this?
Thank you in advance for your help!! :D
Aucun commentaire:
Enregistrer un commentaire