Page is a not externally linkable
- Code, Content, and Presentation
-- Databases
---- mySql db query returning column headers, not values


tomking - 10:11 am on Apr 11, 2012 (gmt 0)


fairhi rocknbil, sorry for the delay, had a few days off!

i dont have a large amount of php experience so it's probably not the most effiecnt way at all. What i was hoping to do, instead of doing a 2d array was just store the results object, but it just didnt appear to work.

i do need to store it for later, nearly immediately after i need to resort the results dynamically. with the newest result being in the center, the next result to the right, the next to the left, the next to the right etc,

eg results [0] [1] [2] [3] [4]
need them in this order
[4] [2] [0] [1] [3]

and i need it to work for n results.

tom


Thread source:: http://www.webmasterworld.com/databases_sql_mysql/4437943.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com