From a ODBC database I generate a table containing two columns: a date and a text that may contain a link to another php page (see for example last row in As long as this link does not contain a parameter in the URL this works fine:
however I want to contain a parameter in the URL of the link (this is the same parameter that is contained in the URL of the calling page (in other words, the page Calling.php?id=50 will contain a link to Called.php?id=50)
I therefore (as a first step with a hard-coded parameter) replaced the simple
by
But this doesn't work; the added script is just included in the generated script:
Any suggestions welcome.
Code:
<tr><td class=pright><a id="d186508150"></a>Tu 15 August 1865</td><td colspan=3><a href='Cherbourg.php'>Cherbourg visit</a></td></tr>
however I want to contain a parameter in the URL of the link (this is the same parameter that is contained in the URL of the calling page (in other words, the page Calling.php?id=50 will contain a link to Called.php?id=50)
I therefore (as a first step with a hard-coded parameter) replaced the simple
Code:
<a href='Cherbourg.php'>Cherbourg visit</a>
by
Code:
<a href='Cherbourg.php'>Cherbourg visit</a>
<?php
echo '?id=50\n';
?>
But this doesn't work; the added script is just included in the generated script:
Code:
<tr><td class=pright><a id="d186508150"></a>Tu 15 August 1865</td><td colspan=3><a href='Cherbourg.php'>Cherbourg visit</a>
<?php
echo '?id=50';
?></td></tr>
Any suggestions welcome.