![]() |
|
#1
|
|||
|
|||
Sorting A FunctionRight I have been very confused due to me not understanding the script section I had been given.
Nothing new then I hear you say. My points system is calculated from the data in a table that is recalled using normal mysql. Whilst the column points is 0 the calculations are carried out by including points.php which uses a function to calculate the points from the data in the other columns. Now when the points are calculated they display in the place of the recalled points column. PHP Code:
Whilst I can sort the order recalled direct from the table by using PHP Code:
Is it possible to sort by points although this uses a function to calculate the points? Once again another clear as mud explaination of my problem. JdS will need wellington boots soon. |
|
#2
|
||||
|
||||
|
I am afraid I STILL don't get it. It might help if you post some sample data (off a similar, fictitious table) and tell us how you expect the data to look like.
The 'quotes' I use in my SQL statements are not single quotes; they're called backticks, I think. ` is not the same as '. So, the example in your post should be : PHP Code:
Quote:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
First week of IA training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sorting a 2D array c++ | mike3340 | CPP / C++ Forum | 4 | 15-Dec-2003 13:35 |
| Need C++ help with functions | EvilIce | CPP / C++ Forum | 2 | 01-Dec-2003 16:04 |
| i/o: set value x (long) before it is used by a function | gmn | C Programming Language | 1 | 18-Nov-2003 01:12 |
| vector sorting | gotnospoon | CPP / C++ Forum | 0 | 10-Nov-2003 15:26 |
| [class] 404 search function code | jrobbio | MySQL / PHP Forum | 6 | 22-Apr-2003 09:32 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The