hi i would like to know why this doesnt work .the problem is that it doesnt give me multiple tr-s like td-s.it only works for one tr and multiple td-s. help apreciated
<html><head>
</head>
<body>
<?php
function myt($border,$column,$row,$words){
$table="<table border='".$border."'>";
if($column==1){
$table.='<tr>';
for($i=1;$i<=$row;$i++){
$table.="<td>".$words."</td>";
};//end of for
$table.='</tr>';
}//end of if
else{
for($i=1;$i<=$column;$i++){
$table.="<tr border='".$border."'>";
for($i=1;$i<=$row;$i++){
$table.='<td>'.$words.'</td>';
}
$table.='</tr>';
};//end of column for
};//end of else
$table.="</table>";
return $table;
};//end of function
//echo myt (1,1,10,'word'); WORKS!!!
echo myt(1,2,4,'lalalala');
?>
</body>
</html>