Hi
I am writing a site that will include an audio dictionary.
The dictionary will have a working search function.
This is what I have so far:
When a search is made, one or more results is returned.
The user can click on each result to get taken to a unique record page for the search result he clicked on.
This will include some sentences where he can hear the word being used in context.
Currently I have got to the stage where the word can be clicked on to open its unique page;
if (mysql_num_rows($result) < 1) {
echo "<br><br><h2>Oh dear. We didn't find anything. Sorry, we did look though.</h2>";
}else {
echo '<table align="center" cellspacing="8" cellpadding="8" width="85%"><tr><td align="left"><b>Word</b></td></tr>';
echo "<br><br><h3>This is what we found:</h3><br>";
while ($r=mysql_fetch_array($result, MYSQLI_ASSOC))
echo '<tr><td align="left"><a href="word.php?w=' . $r['word'] . '">' . $r['word'] . '</a></td></tr>';
}
It's OK to print out the word too in the word.php;
echo $_GET['w'];
This is the problem;
What has so for eluded me is getting the sentence to appear on the unique word page.
I'm hoping I've been missing something reasonably straight forward.
Could someone help me with that please?
Thanks in advance - do please say if what I've written is unclear.