[PHP] What is the best way to reorder table columns...temp tables?

2001-12-14 Thread J. Roberts
I'm trying to update a report generator I have, using php and mysql. The setup is essentially listing employees and production data. What I did when I created it was for the column headers, made them links to requery the database..sample link follows (inside an anchor tag): "reports.php?userid=&d

[PHP] Sorting Multidimensional Array..second dimension has 12 elements

2001-12-08 Thread J. Roberts
I have a 2 dimensional array...with the second dimension having 12 elements. What I want to do is sort (and re-sort) they array by one of the 12 elements...keeping data consistent. All of the examples I have read @php.net seem to deal with multidim-arrays that only have one element in them. H

[PHP] Creating multidimensional array dynamically

2001-12-06 Thread J. Roberts
I can't seem to figure out how to create a multidimensional array from a database query. Here is an example of what I was looking for, using NFL quarterbacks as a statistical foundation... A record contains the following fields: NAME, ATTEMPTS, COMPLETIONS, YARDS, TD, INT Now I would like to be