![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hello Using the code, echo "Order: $key, Number: $value <br />"; I see $value as 11 to 20 followed by 51 to 60 but when the data goes into the mysql table I see 59 down to 51 followed by 20 down to 11 followed by 60. Why not in ascending numeric order in the table? |
#2
| |||
| |||
|
|
On 2011-05-23 09:19, geoff (AT) invalid (DOT) invalid wrote: Hello Using the code, echo "Order: $key, Number: $value <br />"; I see $value as 11 to 20 followed by 51 to 60 but when the data goes into the mysql table I see 59 down to 51 followed by 20 down to 11 followed by 60. Why not in ascending numeric order in the table? A table has no order. If you want to order retrieved data you have to specify it with the order by clause in your select statement. /Lennart [...] |
#3
| |||
| |||
|
|
On 2011-05-23 09:19, geoff (AT) invalid (DOT) invalid wrote: Hello Using the code, echo "Order: $key, Number: $value <br />"; I see $value as 11 to 20 followed by 51 to 60 but when the data goes into the mysql table I see 59 down to 51 followed by 20 down to 11 followed by 60. Why not in ascending numeric order in the table? A table has no order. If you want to order retrieved data you have to specify it with the order by clause in your select statement. /Lennart [...] |
![]() |
| Thread Tools | |
| Display Modes | |
| |