%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/dordingu/public_html/fortuna/
Upload File :
Create Path :
Current File : /home/dordingu/public_html/fortuna/gigsindex.inc.php

<?php
include_once("news/database.inc.php");
$date_format="d/m/Y";

$sql="select n_id,UNIX_TIMESTAMP(n_date) as my_date,n_title_eng, news_english, pic_link,n_pic from fortuna_gigs where  CURRENT_DATE < n_date OR CURRENT_DATE = n_date order by n_date asc,n_id desc limit 0,50";
$result=mysql_query($sql,$db);
$check = mysql_num_rows($result);
$ofset = 100;
$count = 0;

if ($check==0)  {
      echo "No gigs/tours sceduled<BR>";
	  }
	  
	  else {
	  
	  while (($myrow=mysql_fetch_array($result)) && ($count < 5)) {

      if (strlen($myrow[news_english]) > $ofset) {
         $spacepos = strpos($myrow[news_english], " " , $ofset);
         $abstract = substr($myrow[news_english], 0 , $spacepos);
         $abstract = "$abstract <a href=/gigsone.php?n_id=$myrow[n_id]> <I>more info...</i></a>";
      }
      else {
         $abstract = "$myrow[news_english]";
      }

$n_date=date($date_format,$myrow["my_date"]);
      echo "<font color=#FFFFFF>";
      echo "$n_date<BR> ";
      echo "<a href=gigsone.php?n_id=$myrow[n_id]>\n";
      echo "$myrow[n_title_eng]</a><BR>";
      echo "</font>";
      echo "<font color=#CCCCCC>";
	  echo "$abstract";
      echo "</font>";
      echo "<P>";
}
}
?>

Zerion Mini Shell 1.0