How do I get all data from a mysql table via php, and print out the contents of every cell ?

Posted by roberto on Stack Overflow See other posts from Stack Overflow or by roberto
Published on 2010-04-07T11:06:37Z Indexed on 2010/04/07 11:13 UTC
Read the original article Hit count: 205

Filed under:
|
|

Hi.

I've got a database table with at least three rows in it. From php, I have successfully connected to my db and extracted all table information with 'SELECT * from mytable' .

Now I want to loop through first each row, and then each cell, printing out the contents of each cell.

I know this might be a simple task for a more experienced programmer, but I can't figure it out, and I can't find any examples online and it's driving me stark raving bonkers.

How can I do this ?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about php