Hello,
I’m trying to create a list of links, each containing an $ID variable to passed to the next page, from a query and am encountering an unexpected problem. My links appear to be populated fine but there is an unexpected and unwanted / between the URL and the ? when I run it.
Here is my code,
while($row = mysql_fetch_array($result)) {
echo "<a href='http://www.mcdorman.com?id=" . $row['ID'] . "'>" . $row['Subject'] . "</a>";
echo "<br>";
}
The output looks like this: http://www.mcdorman.com/?id=2
Any idea where that last / is coming from and/or what I'm doing wrong?
Thanks,
Slate