PDA

View Full Version : Php code help?


soggy
02-08-2004, 09:50 PM
I am trying to put the below variables in a table. How do I add it?



print("

<FONT FACE=\"Comic Sans MS\" SIZE=6>$category</FONT>
<BR><BR>
");


// FILL AN ARRAY WITH THE DOMAIN NAMES
$dirhandle= opendir("$categories/$category");





// WHILE THERE'S STILL SOMETHING IN THE CATEGORIES FOLDER
while($filename = readdir($dirhandle)) {

// WHICH IS NOT THE DOTS
if ($filename != ".") {
if ($filename != "..") {

// FIL AN ARRAY WITH CONTENT OF EACH LINK FILE
$file_handle=file("$categories/$category/$filename");
$this_link_info=explode("|", $file_handle[0]);

print("
<A HREF=\"$this_link_info[3]\"><FONT FACE=\"Comic Sans MS\" SIZE=3>$this_link_info[2]</FONT></A>
&nbsp;-&nbsp;
<FONT FACE=Comic Sans MS SIZE=2>$this_link_info[5]</FONT><BR>
\n");

}
}
}
closedir($dirhandle);

soggy
02-09-2004, 09:06 PM
<bump>

Woff
02-10-2004, 05:09 AM
Hi,

If you could clarify exactly what you wanted to do, maybe i can help:)

soggy
02-10-2004, 05:12 PM
I want the above code in a table. I dont know how or where to use these in php. Php is still kinda a new for me cause I usually just use html.

Woff
02-11-2004, 04:22 AM
You mean you want the above code to print a table of links out as opposed to just a list of links as per currently?