View file wap/ranvault.php

File size: 635B
<?php

  $sql = "SELECT id, title, pudt, itemurl FROM mx_vault ORDER BY RAND()  LIMIT 1";

    $items = mysql_query($sql);
    echo mysql_error();
    if(mysql_num_rows($items)>0)
    {
    while ($item = mysql_fetch_array($items))
    {
    $cotime = time() - (10*60*60);
  if($item[2]>=$cotime)
 {
 $stat = "<img src=\"images/d_new.gif\" alt=\"new\"/>";
 }else{
 $stat = "";
 }
 $ext = getext($item[3]);
 $ime = getextimg($ext);

 $lnk = "$ime<a href=\"lists.php?show=vview&amp;hits=$hits&amp;file=$item[0]\">".htmlspecialchars($item[1])."</a> $stat";

 echo "Random Vault<br/>$lnk<br/>";
    }
    }
 
?>