Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php mysql_connect("localhost","root","");
  2.     mysql_select_db("galeria");
  3.     $query = mysql_query("select foto from info") or die(mysql_error());
  4.     while($linha = mysql_fetch_assoc($query)) { ?>
  5.     <div>
  6.     <img src="<?php echo $linha['foto']; ?>" />
  7.     <span>Preço: <?php echo $linha['preco']; ?> </span>
  8.     </div>
  9.     <? } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement