skip to main
|
skip to sidebar
MR.FREEMAN
Home
About
Posts RSS
Comments RSS
Contact
Blogger Templates
Generate Table in HTML and PHP
Now I'll to tell you about how to create Table
at the first time, create new HTML file this is the code:
Generate Table in HTML and PHP
Generate Table in HTML and PHP
Row:
Column:
Sel :
after that, create a PHP file, give name to thisi php file: tbl.php
this is the code:
Generate Table Result
$rows = 1;
$columns = 1;
$cells = 1;
?>
Row
rows
Column
columns
Cell
cells
Generate Table
$width = $columns * 80;
echo "
";
$ro = 0;
$cel = 1;
while ($ro < $rows && $cel <= $cells)
{
echo "
";
$co = 0;
while ($co < $columns)
{
if ($cel <= $cells)
{
echo "
".$cel."
";
$cel++;
}
$co++;
}
echo "
";
$ro++;
}
echo "
";
?>
Newer Post
Older Post
Home
My Twitter
Chat
Blog Archive
►
2011
(3)
►
April
(3)
▼
2010
(20)
▼
April
(2)
Create Simple Login Form in PHP without Database
Generate Table in HTML and PHP
►
March
(14)
►
February
(4)
►
2009
(2)
►
June
(2)
Labels
Cinta
(1)
Gita Gutawa
(2)
Internet
(4)
Keamanan Sistem Komputer
(2)
Kuliah
(2)
Lirik
(1)
Pendidikan
(4)
PTI478
(10)
Rekayasa Perangkat Lunak
(1)
Tutorial Photoshop
(1)
Web Programming
(12)
Widgeo
widgeo.net