+ 1
How to make a function in php using two which creates an html table giving its number of rows and columns.
I need the table function on urgent basis. Need a function which gives the html table telling its number of rows and columns and uses two arguments.
2 ответов
+ 2
Thanks
0
For example as follows:
<?php
... some code ...
echo "<table>";
while(data_exists)
{
echo "<tr>";
echo "<td>"some data "</td>";
echo "<td>"other data"</td>";
echo "</tr>";
}
echo "</table>";
?>