$value)
{ echo "$var = $value
\n"; }
print "
";
while (($data = fgetcsv ($fp, 1000, ","))) {
if ($data[3] == $value)
{
if (($numcell % $maxcols == 0))
{
if ($numcell == 0)
{
print "\n";
}
else
{
print "
\n";
}
}
$imgname = str_replace("http://edgepics.esmartguy.com/","",$data[2]);
$imgname = str_replace(".html",".jpg",$imgname);
$imgname = str_replace(".jpg", "_tn.jpg", $imgname);
print "| \n";
print " \n";
print " ". $data[4] ."\n";
print "
| \n";
$numcell++;
}
}
fclose ($fp);
print $numcell;
while ( $numcell % $maxcols != 0)
{
print "\n";
print " | \n";
$numcell++;
}
print "
";
print "
";
?>