Witaj Rogaty,

On Tue, 24 Jul 2001, Rogaty wrote:
> (EXAMPLE):
> 
> TOPIC STRUCTURE:
> 
> /reviews/
>        gameplatform1/
>                     /apple
>                     /bear
>                     /...
> 
>        gameplatform2/
>                     /aconagua
>                     /armada
>                     /code_veronica
>                     /crazy_taxi
>                     /zelda
>                     /zorro
> 
> and_many_other_gameplatform_subtopics_in_topic_/reviews/
> 
> For example: On my page i can choose between /previews/ and /reviews/.
> I go to /reviews/ (described above).
> And what is shown?
> 
> # A B C D E F G H ...
> 
> Now you can choose letter to see previews(articles) begining with
> selected LETTER. When i choose it, i would like it to print out all
> articles in topic /reviews/ begining with this LETTER.

aha... I now assume you have this LETTER in $letter, and the id of topic
reviews in $id :

<?php
  $article = mgd_list_topic_articles_all($id)
  while($article && $article->fetch()){
   if(eregi("^$letter", $article->title)) {
     ?>Title: &(article.title);<br><?php
   }
  }
?>

> 
> But I have also another joy. I can narrow down my search by choosing
> specific gameplatfrom 'category', which could be for examle
> /gameplatform2/ (described above in topic strutcure). After i choose
> it, there should also be:
> 
> # A B C D E F G H ...
> 
> Now i would like it to print out gameplatform2_articles by clicking on
> one of these letters.

for the above example you should then have $id contain the id of topic
gameplatform2

Better?

-- 
'The joy of my life is in Zion - Lauryn Hill'
Armand A. Verstappen * <[EMAIL PROTECTED]> *


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to