Hi,
The piece below is a snippet from one of my scripts, Its a PHP webmail script, but im looking to put the headers in a table, to make the script look nicer.
Does anyone know how I can break up the $headers array or else how it works.
A example of what shows up is this
U 2)24-Jan-2006 Internet Airlines Re Internet Airlines Registr (1905 chars)
The code:
$link=imap_open($MAILSERVER,$PHP_AUTH_USER,$PHP_AUTH_PW) or die(imap_last_error());
$headers=imap_headers($link);
for($x=1; $x < count($headers); $x++)
{
$idx=($x-1);
/echo "<a href=\"view.php?num=$x\">".$headers[$idx]."</a><br>";
}
Thanks for any help,
THNN
The piece below is a snippet from one of my scripts, Its a PHP webmail script, but im looking to put the headers in a table, to make the script look nicer.
Does anyone know how I can break up the $headers array or else how it works.
A example of what shows up is this
U 2)24-Jan-2006 Internet Airlines Re Internet Airlines Registr (1905 chars)
The code:
$link=imap_open($MAILSERVER,$PHP_AUTH_USER,$PHP_AUTH_PW) or die(imap_last_error());
$headers=imap_headers($link);
for($x=1; $x < count($headers); $x++)
{
$idx=($x-1);
/echo "<a href=\"view.php?num=$x\">".$headers[$idx]."</a><br>";
}
Thanks for any help,
THNN
