|
include("func.php3");
echo "";
$filename = "/home/finpres/csv/klse/story.csv";
$in = fopen($filename,"r");
while (!feof($in))
{
$line = fgets($in,4096);
list($a,$b,$c,$d,$e,$f,$g,$h,$i) = split(",", $line,9);
if($art == $a && $pg == $b)
{
echo "";
echo p_subheadline($d);
echo "";
echo p_mainheadline($e);
echo "";
echo p_author($c);
echo p_date($h);
include p_story($f);
echo "";
if($b != $i)
{
$nextpg = $b + 1;
}
$printed = 1;
} // end if
if($checknext == 1){
echo " ";
echo p_next($art,$nextpg,"Next");
$done = $nextpg;
$checknext = 0;
}
} // end while
if ($printed != 1)
{
print "there's no such article!";
}
echo "
";
echo " | ";
//echo "
| ";
//echo " | |