RobBroekhuis
Technical User
Another newbie question: I'm executing a query, and want to display the results in a tabular format as follows:
<result1> <result6> <result11>
<result2> <result7>
<result3> <result8>
<result4> <result9>
<result5> <result10>
I can access mySql_num_rows on the query result and figure out how to go through a loop to create the tabular results. But I haven't figured out how to return result rows by sequential number, rather than just one at a time using mysql_fetch_array(). Is there an easy way to accomplish this, or do I need to read my results into an array variable first, before creating the table?
Rob
![[flowerface] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)
<result1> <result6> <result11>
<result2> <result7>
<result3> <result8>
<result4> <result9>
<result5> <result10>
I can access mySql_num_rows on the query result and figure out how to go through a loop to create the tabular results. But I haven't figured out how to return result rows by sequential number, rather than just one at a time using mysql_fetch_array(). Is there an easy way to accomplish this, or do I need to read my results into an array variable first, before creating the table?
Rob
![[flowerface] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)