<?php
include ('db.php');
$result = mysql_query ("SELECT * FROM `users` WHERE `grade` = '9'") or die(mysql_error());
while ($row = mysql_fetch_array($result)) {
$teacher = $row['teacher'];
$grade = $row['grade'];
$link = "<br><a href=\"notes.php?teacher=$teacher\">";
echo "$teacher - $link<br>";
}
?>
so i have that and all it shows is
-
that is a clickable link but it leads to
notes.php?teacher=