bbmak Posted January 13, 2008 Share Posted January 13, 2008 I am making a scheduler, but i have some trouble with creating the full table with the loop. here is my code echo '<table border=2>'; $i = 1; $j = 7; $m = 0; $a = 24; echo '<tr>'; echo '<td></td>'; while($i < $j) { echo '<td>'; $date = mktime(0, 0, 0, date("m"), date("d")+"$i", date("y")); echo date("m/d/y", $date); $i++; echo '</td>'; } echo '</tr>'; while($m < $a) { $n = $m +1; echo "<tr><td>" . $m . ":00 - " . $n . ":00 </td></tr>"; $m++; } echo '</table>'; here is my page http://mak.ghaben.com/scheduler/ I want the table extend all the way. Little help please Quote Link to comment https://forums.phpfreaks.com/topic/85760-solved-making-a-table-with-loop/ Share on other sites More sharing options...
phpSensei Posted January 13, 2008 Share Posted January 13, 2008 table width = "100%" ? Quote Link to comment https://forums.phpfreaks.com/topic/85760-solved-making-a-table-with-loop/#findComment-437704 Share on other sites More sharing options...
bbmak Posted January 13, 2008 Author Share Posted January 13, 2008 table width = "100%" ? no, not this, but thx for ur help. I need all the column and rows to be showed in the table because i will let enter the time that i will be busy on the next 7 days. Quote Link to comment https://forums.phpfreaks.com/topic/85760-solved-making-a-table-with-loop/#findComment-437706 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.