milardovich

Ejemplo html+sql+php

Jul 17th, 2011
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <?php
  2.     $query = mysql_query("SELECT * FROM pedidos ORDER BY id DESC LIMIT 25");
  3.     while($row = mysql_fetch_array($query)):
  4. ?>
  5. <div class="pedido_normal">[<?=$row['fecha'];?>] <?=$row['nombre'];?> </div><div class="mas_info" id="item<?=$row['id'];?>"><a href="javascript:void(0);" onclick="showInfo('<?=$row['id'];?>')">Más info</a></div>
  6.     <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment