I'd be grateful for some help please.
My problem is this - I am trying to find a way to pass the content of a db search from one page to another page, if that's clear.
Each file opens with
This is the database search:
$result = mysql_query("SELECT word,sentence1 FROM pro_words WHERE word LIKE '%$search%'");
Any of the results of the db search can be accessed in more detail via a new page;
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>';
In essence, I'm looking to reproduce 'word' and 'sentence1' in the word.php file.
I have tried variations around $_SESSION, $_POST and $_GET without success - neither of my reference books provide guidance.
I'd be really grateful if someone could help me with a solution please. Something is eluding me, perhaps the problem is more complex than I think?
If you need any further info then do please say, but in meantime thanks in advance for any help.