Location: PHPKode > scripts > LikePortal - Facebook Like Site Script > random.php
<?php
include 'header.php';?>
<div class="rounded">
<div class="title"><img src="/images/help-browser.png" style="float:left;margin:5px 5px 5px 5px;">Random likes</div>
<div style="text-align:left; padding: 10px 10px 10px 10px;">
					<?PHP
						$select = mysql_query("SELECT * FROM `likes` ORDER BY RAND() DESC LIMIT 30");
						$count = mysql_num_rows($select);
						if($count == 0){
							echo'<font size="2px">&#8226; Currently no top likes<br></font>';
						}else{
							
							while($fetch = mysql_fetch_array($select)){
								echo'<fb:like href="http://likeportal.info/view.php?id='.$fetch[id].'" layout="button_count" show_faces="false" width="90" font="arial"></fb:like><a href="view.php?id='.$fetch[id].'">'.$fetch[title].'</a><br><hr />';
							}
						}
						?>
                          </div>
 </div>

<?php
include 'footer.php';
?>
Return current item: LikePortal - Facebook Like Site Script