Sort(query) by link - Please help

Author Message

Siniša Šehović

Friday 12 November 2004 1:11:07 am

Hi all!

I have one problem and don't know how to solve it.
I need address book of employees. I have managed to create users (600) and managed to display them by name (ASC).
Now I would like to have on top of page letters e.g. A B C D E ... like links and when I click on it I should have list of employees with name that begins with selected letter.

I suppose that could be accomplished by some kind of SQL query but don't know how to make that.
I have been looking into ezsearch class but couldn’t figure out how to do it.

Please help me on this subject!

Best regards,
Sinisa

---
If at first you don't succeed, look in the trash for the instructions.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 04:25:44
Script start
Timing: Jan 19 2025 04:25:44
Module start 'layout'
Timing: Jan 19 2025 04:25:44
Module start 'content'
Timing: Jan 19 2025 04:25:45
Module end 'content'
Timing: Jan 19 2025 04:25:45
Script end

Main resources:

Total runtime0.8957 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.1563152.6250
Module start 'layout' 0.00550.0026 741.781339.4453
Module start 'content' 0.00810.8860 781.2266464.6094
Module end 'content' 0.89400.0016 1,245.83598.1563
Script end 0.8956  1,253.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3745160.0002
Check MTime0.00130.1471160.0001
Mysql Total
Database connection0.00070.079410.0007
Mysqli_queries0.851495.0600460.0185
Looping result0.00060.0679440.0000
Template Total0.861396.220.4306
Template load0.00220.243120.0011
Template processing0.859195.915720.4295
Template load and register function0.00010.013910.0001
states
state_id_array0.00090.102610.0009
state_identifier_array0.00200.222520.0010
Override
Cache load0.00180.1968130.0001
Sytem overhead
Fetch class attribute can translate value0.00150.169910.0015
Fetch class attribute name0.00070.079120.0004
XML
Image XML parsing0.00050.059210.0005
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00160.1735150.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs