Menu
Alright, I am not quite sure how to do this, hopefully I can explain it well enough so someone can help me. It OUGHT to be simple, I just cant seem to figure it out.
[CODE]$query1 = “SELECT id, name FROM dyn”;
$results1 = mysql_query($query1) or die(mysql_error());
while ($dyn = mysql_fetch_assoc($results1)) {
foreach ($dyn as $a) {
echo $a;
echo “<br />”;
}
}
That is straightforward. There are 11 occurrences that this query outputs. And I only want one of them, particularly I want the one where $dyn[‘id’] = $ahop[‘id’] (another variable I have on this page.
What would be the best way to do this?