Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Php code help? (http://www.greenguysboard.com/board/showthread.php?t=4650)

soggy 2004-02-08 09:50 PM

Php code help?
 
I am trying to put the below variables in a table. How do I add it?



print("

$category



");


// 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("
$this_link_info[2]
 - 
$this_link_info[5]

\n");

}
}
}
closedir($dirhandle);

soggy 2004-02-09 09:06 PM


Woff 2004-02-10 05:09 AM

Hi,

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

soggy 2004-02-10 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 2004-02-11 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?


All times are GMT -4. The time now is 05:01 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc