I don't get this- ive incorporated your suggestion but I get no returns. My activity_participant table is definitely populated. To clarify- Im looking to show all authority_body's in qualityadmin that have their qualityadmin_id listed in the activity_participant table (i.e one authority_body can have many activities). Here is the activity_participant table in phpmyadmin to demonstrate:
www.mindseyemidlands.co.uk/pic.htm
The' X' I used in the previous thread refers to an activity in this case 'Making Choices'- this is my code which at present returns
Resource id #4=result
<?php
include("connect.php");
$sql = "select qualityadmin.authority_body from qualityadmin,activity_participant where activity_participant.qualityadmin_id = qualityadmin.qualityadmin_id and activity_participant.activity='Making Choices'";
$result = mysql_query($sql) or die(mysql_error());
echo $result."=result<br>
";
while($row=mysql_fetch_array($result))
{ // NOTE this one ABOVE the echo
//echo "result found!";
//echo $row[0];
echo '<a href="infolinks_details.php?authority_body='. urlencode($row[0]) .'">'. $row[0] .'</a><br><br>';
echo $row[1] .'<br><br>';
}
?>