Why is this
Code: Select all
$result = $db->Execute("select al.Id,al.Name from user_locations as ul join adventure_locations al where ul.UserId = " . $userId);
while (! $result->EOF)
{
LinkButton($result->fields[1], "index.php?p=adventure&path=" . $result->fields[0]);
echo "<br>";
$result->MoveNext();
}
$result->Close();