Ah. It only displays one column because you only printed one column. Furthermore, because you are not looping over the result set, it only displays one row of the table.
Are you learning PHP using a book? Your introductory book should have an example with the use of say, a while loop to loop over the result set.