| Index
» Projekty
» phpMyEdit
» Fórum
» Sort by IP Address |
 |
cmiket
Založený: 08.09.2011
Príspevky: 1
Zaslal: 2011-09-08 20:10
Návrat hore
Odpovedať s citátom
|
I would like to use one column for IP Addresses. This is tricky though for sorting. I can run a query from phpmyadmin with
ORDER BY INET_ATON(IP_Address_Column);
which will sort the column correctly.
Is it possible to do something like that in this script when sorting by the IP Address column? If so where would it need inserted into the script?
Thanks,
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2011-09-08 22:43
Návrat hore
Odpovedať s citátom
|
Delve into MySQL functions and see if such a function exists in MySQL, to impact the sort order. If found, then you could find examples on approximately how to implement the MySQL function ... i.e. searching the forum for CONCAT examples ... and sort of following CONCAT examples to implement a different MySQL function. I think you'll have trouble achieving your goal.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|