Re: some hyper links
| From: | slavko dervisevic | Date: | Wed, 19 Sep 2001 13:41:44 +0000 |
| Subject: | Re: some hyper links | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67887@lists.php.net to get a copy of this message | ||
Hello Adrian,
no short and simple solution
select * from policies
while(policies){
select count(*) from topics
if(records) echo link
else echo nolink
}
Wednesday, September 19, 2001, 12:11:05 PM, you wrote:
ADC> Hi,
ADC> I have two table:
ADC> policies:
id ==>> auto increment, primary key
ADC> policy
ADC> topics
id ==>> auto increment, primary key
ADC> topic
polid ==>> linked from policies
ADC> In the policies table I have 72 records in the topics 325. What I am
ADC> trying to do is to display all the 72 record for the policies table but
ADC> only put a hyperlink for the ones that have records in the topics table.
ADC> Any clues.
ADC> Adrian
--
Best regards,
slavko mailto:slavkod@eunet.yu