Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $consulta = mysql_query("SELECT * FROM diario ORDER BY rand() limit 2");
- while ($row2 = mysql_fetch_assoc($consulta)) {
- ?>
- <div class="more-page">
- <a href="view-<?php echo $row["id"];?>.html">
- <div class="new-img">
- <img src="<?php echo $row2["imagen"];?>">
- </div>
- <div class="page-title">
- <p><?php echo utf8_encode($row2["titulo"]);?></p>
- </div>
- </a>
- </div>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement