Actually it was your post sheephat. I kept getting a line code error before.
I guess I was actually putting even the table format inside the echo, hehehe.
I'm such a noob at this, I mean.... I have VB background, but PHP seems a lil bit more complicated to program compared to VB.
But it was your posts that helped me, I already did the my sql connect, my sql query and all that, I just wanted the output to be more organized and in table type format cos I want to be able to print out the result in a nice looking format.