Hello to everyone!
I'm a web programmer since 1996 and always used table for display anything on sites that I've made. But now recently, I've been reading a lot of websites that says: "Tableless makes your design easier and more practical..."
I've been searching the web for many days looking for a tutorial or a simple code just to give me an idea of how to display database query results using tableless.
For what I've understood until now is that a DIV element can't have the same ID, right? So let's say that I want to display the results of my personal cd collection, how can I do that?
- Example -
With table I would use this (using PHP):
Code:
for($i = 0; $i < 10; $i++) {
print "<table>";
print "<tr><td>[img]cd_cover.gif[/img]</td></tr>";
print "<tr><td>CD Title</td></tr>";
print "<tr><td>CD Band Name</td></tr>";
print "</table>";
print "
";
}
If anyone can give me hint on how to do this, I would appreciate a lot.
Thanks,
Ramiro