Forum Moderators: coopster
Example:
$result = mysql_query(
"select wordID, word from glos");
while ($i = mysql_fetch_array($result)){
print <<<END
<a href="/definitions.php?word={$i['word']}">{$i['word']}</a><br>\n
END;
}
definitions.php:
$word = $_GET["word"];
$result = mysql_query(
"SELECT * FROM glos
where word = '$word'"
);
while ($i = mysql_fetch_array($result)){
$def = $i["def"];
print "Definition of $word : <br><br>\n";
print "$def<br>\n";
}
Thanks.
www.domain.edu/AplusBoverDplusE/
If you're willing to give up "human readable" URIs, you can just use the id and have URIs like
www.domain.edu/definition.php?id=342
Tom