$ssql = "Select * from servicios where publicar = 1 ORDER BY prioridad";
//Ejecuto la consulta
$result = $conn->query($ssql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) { ?>
" class="img-polaroid" alt=" echo $row["nombrelargo"]; ?>" />
}} else {
echo "";
} $conn->close();?>
echo $row["nombrelargo"]; ?>
echo $row["contenido"]; ?>