看板 [ PHP ]
討論串[請益] for迴圈table練習
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓4(4推 0噓 24→)留言28則,0人參與, 最新作者cspy (Perfect Stranger)時間15年前 (2010/10/25 00:54), 編輯資訊
0
0
0
內容預覽:
<?php. printf('. <table border="3" height="60" width="600" bordercolorlight="#000080". bordercolordark="#0000FF" cellspacing="0" cellpadding="0">. ');
(還有316個字)

推噓2(2推 0噓 4→)留言6則,0人參與, 最新作者tkdmaf (皮皮快跑)時間15年前 (2010/10/24 09:49), 編輯資訊
0
0
0
內容預覽:
讓我們轉換一個型式來呈現看看如何?(view). <table border="1">. <tr>. <?php for($i = 1;$i <= 10;$i++):?>. <td width="50"><?echo $i?></td> (這裡的echo才是必要性的輸出). <?php if($i
(還有631個字)

推噓12(13推 1噓 35→)留言49則,0人參與, 最新作者ccg時間15年前 (2010/10/24 01:43), 編輯資訊
0
0
0
內容預覽:
最近剛學php學到for迴圈,看到在設成table的一範例為. <?php. echo "<table border='1'>";. for($i=1; $i<=10; $i++){. if($i % 2 !=0){. echo "<tr><td width='50'>{$i}</td>";. }e
(還有77個字)
首頁
上一頁
1
下一頁
尾頁