Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Arranging The Output In Right Format
itssami
post May 4 2006, 10:53 AM
Post #1


Super Member
*********

Group: Members
Posts: 258
Joined: 13-November 05
Member No.: 14,234



my echo code of some function gives the output like ..

date4.php04 May 06
dirtest4.php04 May 06

it is not in good display format..File names are fine but i want to arrange the position of the date.. for example i want to that date of all the outputs will be at the same position like

date4.php 04 May 06
dirtest4.php 04 May 06

can some one help me in correcting the format..


code is:
CODE
echo "<td><a href=\"". $dir_name . $thisName . "\"></td>". $thisName . "</a><td >$thisTime </td><br />\n";
Go to the top of the page
 
+Quote Post
mole2k9
post May 4 2006, 12:40 PM
Post #2


Newbie [Level 1]
*

Group: Members
Posts: 21
Joined: 30-April 06
Member No.: 22,816



Here's a generic example, have a look here at for different table properties.

group each new column in a <td></td> and all columns in a <tr></tr> and the whole thing in a <table></table>


CODE
echo "<table cellspacing =20>";

for($i=0; $i<100; $i++)
{
echo "<tr><td><a href=".chr(34)."www.test.com".chr(34).">test".$i."</a></td><td>"."lp</td></tr>";
}

echo "</table>";
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Php "newline" Character Printing Fails(4)


 



- Lo-Fi Version Time is now: 21st August 2008 - 01:33 AM