I select a list of names from mysqli database then display row details in display.php with if (isset($_GET['name'])); The link is
$str = strtoupper($str);
echo "<tr><td><a href='php/display.php?name=$str'>$str</a></td></tr>";
This executes correctly unless name contains '(apostrophe).
For instance $str
(as input/click) shows as L'ECLIPSE
but the <a>
link only L'
The result in display.php is 'No data found for your request'
I have found exact same queries on this site but none of the answers have resolved my problem. Perhaps I am not implementing correctly. I assume this is about escaping. But I know little about it.