I want to check if a query brings an result. For now on I make a rowcount for my query. If the rowcount is > then 0 I make again a new query fetching all results for the query. As I make an alphabethic query loop (i.e. WHERE name LIKE "a%"
) in the range from a-z it would result in 52 queries to complete the task, that's a bit overscored imo. How wolud you face this kind of task ? With the result I want to render a menu with alphabetic ordered links.
A
----
Apple Link
Annanas Link
B
----
Banana Link
etc.
Perhaps there is another way to do that in one query and exlopde in some way the result alphabetic as I need to render for each Letter a new introducing menupoint. I hope you have some usefull pointers to tuneup my performance