On 12/15/2017 9:28 PM, Jim H wrote:
I have PHP code containing:
$query = "SELECT name, level, date_entered
FROM $table
WHERE name = 'Annual'
ORDER BY level DESC
LIMIT 10";
Field "level" is VARCHAR(13) and can contain either all numeric
(numeric string) or all alpha data, but for records where name =
"Annual" the content is always all numeric (numeric string)
So, after stepping thru $query and printing the content of "level" I
get the following desired result:
580
393
346
192
157
156
And after adding another record containing level = 1174 I get the following undesired result:
580
393
346
192
157
156
1174
What I want is:
1174
580
393
346
192
157
156
What am I doing wrong?
You're asking a database question in a language newsgroup. Try an appropriate newsgroup.
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstu...@attglobal.net
==================
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 351 |
Nodes: | 16 (2 / 14) |
Uptime: | 29:05:04 |
Calls: | 7,634 |
Files: | 12,796 |
Messages: | 5,688,852 |