Hi there,
is there a way to echo all columns and rows with PHP when I don't know any column names?
Echo all columns and rows when not knowing column names
Moderator: General Moderators
-
phpdevelopindia
- Forum Newbie
- Posts: 1
- Joined: Tue Apr 28, 2009 12:51 am
- Location: India
Re: Echo all columns and rows when not knowing column names
Hi,
As per my knowledge, you need to fetch all rows in Associated Array and set it in For..Each loop in place of simple For loop.
In For..Each loop, you will get key value of of each row and use array key value as a label.
As per my knowledge, you need to fetch all rows in Associated Array and set it in For..Each loop in place of simple For loop.
In For..Each loop, you will get key value of of each row and use array key value as a label.