[thelist] php display image link error

Andrew Maynes andrew at uk-webdeveloper.co.uk
Wed Jul 3 07:05:01 CDT 2002

Hi all

I have some php code that displays an image link, pulled from a csv file.  The
display is random and I want the image links to reside with a neat table (where
they're aligned nicely!)

this is the code

$filearray = file ("admin/databases/groups.csv");
while (list ($no, $line) = each ($filearray)) {
	$s = split (";", $line);
	if ($s[0] == "MAIN GROUP") echo " <a href=\"products.php?m=". substr (md5
($s[1]), 0, 10) ."\"><img src=\"$s[1].gif\" alt=\"$s[1]\" border=\"0\"></a>";

unset ($filearray, $no, $line, $s);

it produces a space between the images, is this just a simple case of displaying
the images with a <td> ?

Thank you


Information in this email is confidential and may be privileged.
It is intended for the addressee only. If you have received it in error,
please notify the sender immediately and delete it from your system.
You should not otherwise copy it, retransmit it or use or disclose its
contents to anyone.
Thank you for your co-operation.
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.371 / Virus Database: 206 - Release Date: 6/13/02

More information about the thelist mailing list