Advertisement
Guest User

Untitled

a guest
Oct 29th, 2011
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?php
  2. require("sql.php");
  3.         $sqlvenda = "SELECT * FROM venda";
  4.         $qr = mysql_query($sqlvenda) or die (mysql_error());
  5.         while($ln = mysql_fetch_assoc($qr)){
  6.         $id = $ln['id'];
  7.         $nome = $ln['nome'];
  8.         ?>
  9.         <?php echo $nome; ?></h2><br>
  10. <a href="?pagina=carrinho&acao=add&id=<?php echo $id; ?>" />Comprar</a>
  11.         <?php } ?>
  12.  
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement