How to loop through an array return from the Query of Mysql
- by Jerry
This might be easy for you guys but i could't get it.
I have a php class that query the database and return the query result. I assign the result to an array and wants to use it on my main.php script. I have tried to use echo $var[0] or
echo $var[1] but the output are 'array' instead of my value. Anyone can help me about this issue? Thanks a lot!…