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:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]