there is a prob in my program pls help..

<?php 
print "<table border=\"1\">\n";
for ( $y=1;$y<=10;$y++) {
print "<tr>\n";
for($x=1;$x<=10;$x++) {
print "\t<td>";
print ($y/$x);
print "<\td>\n";
}
print "</td>\n";
}
print "</table>";
?>

the output should be...


1 2 3 4 5 6 7 8 9 10
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10


im having prob on inputting a space at the first row...in that case what html tag will i use??
pls help

space ? &nbsp; :S I don't think I understood your problem there!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.