foreach( $rows as $row ) { $name = htmlspecialchars($row['name']); echo ''; echo ''; echo ''; echo ''; echo ''; }