Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php mysql_connect("localhost","root","");
- mysql_select_db("galeria");
- $query = mysql_query("select foto from info") or die(mysql_error());
- while($linha = mysql_fetch_assoc($query)) { ?>
- <div>
- <img src="<?php echo $linha['foto']; ?>" />
- <span>Preço: <?php echo $linha['preco']; ?> </span>
- </div>
- <? } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement