Jump to content
xisto Community
Sign in to follow this  
itssami

Arranging The Output In Right Format

Recommended Posts

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:

echo "<td><a href=\"". $dir_name . $thisName . "\"></td>". $thisName . "</a><td >$thisTime </td><br />\n";

Share this post


Link to post
Share on other sites

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>

 



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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.