in reply to formatting output from a mysql query in column format
You appear to be using the $counter - both as a row index, and as a column index.
Is there a reason you use the array slice syntax "@array[$counter]" to extract what appears to be a single item ?
"LIMIT 1" can be appended to your SQL - if you just want one row returned. There are other ways to get SQL to return the desired row - but you have not indicated what filters you require.
"XML is like violence: if it doesn't solve your problem, use more."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: formatting output from a mysql query in column format
by thuperuser (Initiate) on Jul 25, 2011 at 18:29 UTC | |
by NetWallah (Canon) on Jul 27, 2011 at 05:07 UTC |