Jump to content
xisto Community
Eggie

Html Table Rows Problem [solved]

Recommended Posts

ok...i have a problem with aligning rows in a table...

i have this table..

Posted Image

i need to align that row with "Players Registered" goes over the whole table...and column with numbers does not spread like that with row which is upon it...

 

<table border=1 bordercolor=red align=right><td>Players Registered</td><tr><td><?php$osel = mysql_query("select * from members");while ($online = mysql_fetch_array($osel)) {?><tr><?php$s=$online['username'];	$id=$online['id'];$i++;?><td><?phpecho $online['id'];?></td><?php?><td><?php echo $s;?></td><?php?></tr><?php}?></td></tr></table>

SOLVED!

 

<TH colspan="2">Players Registered</TH>

Edited by yordan (see edit history)

Share this post


Link to post
Share on other sites
link to the retrieve data from mysqlHtml Table Rows Problem [solved]I retrieved the data from mysql, and I display that in a html table ,but I have to make that retrieve data as a link , for one row I have two or three data,how can I change in to link...-reply by raman

Share this post


Link to post
Share on other sites
Need help creating tableHtml Table Rows Problem [solved]

I can use this code to create a table but I cant seem to figure out how to get each answer into it's own individual cell. Can someone please help. It is a simple code.  below is the table I created.

<?php$output .= '';Echo "<h1>Table</h1>";Echo "<table border='1' width '250'><td>";for ($counter = 1; $counter <= 10; ++$counter){     for ($number = 1; $number <=10; ++$number)   {     $output .= $counter * $number . ' ' ;   }   $output .= '<br />';}Echo "</table>";Include 'multiply.Html.Php';?>

 

Table

[TCOL][/TCOL]
1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14 16 18 20 3 6 9 12 15 18 21 24 27 30 4 8 12 16 20 24 28 32 36 40 5 10 15 20 25 30 35 40 45 50 6 12 18 24 30 36 42 48 54 60 7 14 21 28 35 42 49 56 63 70 8 16 24 32 40 48 56 64 72 80 9 18 27 36 45 54 63 72 81 90 10 20 30 40 50 60 70 80 90 100

-question by candy

Share this post


Link to post
Share on other sites
html table rows problemHtml Table Rows Problem [solved]

<?phpEcho "<h1>Table</h1>";Echo "<table border='1' width '250'>";

for ($counter = 1; $counter <= 10; ++$counter){echo "<tr>";   for ($number = 1; $number <=10; ++$number)   { echo "<td>";    echo $output = $counter * $number . ' ' ; echo "</td>";   } echo "</tr>";}Echo "</table>";?> 

Share this post


Link to post
Share on other sites
tables with corresponding numbers on each cell using php?Html Table Rows Problem [solved]

 hello how can I generate table with numbers inside the cells?

 eg:

 -----------------  

1  4  7  10 

2  5  8  11 

3  6  9 12

 ---------------------

or :

 -----------------  

12  9  6  3

10  8  5  2 

10  7  4  1

 ---------------------

 thanks

 

-reply by james

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

×
×
  • 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.