Msg#: 4564107 posted 11:40 am on Apr 12, 2013 (gmt 0)
echo "<a href=\"Edetails_page.php?id= '$id'>";
Don't surround the URL parameter in single quotes and don't precede with a space. You also aren't closing the double quote of your href attribute, which is where all your extra data is coming. ie. It should be something like:
echo "<a href=\"Edetails_page.php?id=$id>\"";
Although I would choose to write this with single quotes and use string concatenation (so you don't need to escape the double quotes in your string):
echo '<a href="Edetails_page.php?id='.$id.'>"';
I would assume you are seeing the same jumble of data in the address bar?
Hey thanks guys, yea I was getting the data in the address bar but this appears to have solved it and the link itself is working fine... the link is however not displaying the full data and is just showing a number... any ideas why this could be?
The link should be showing the contents of $event_data['description'] and $event_data['UserID'] - whatever they might contain. Have you verified that these fields are correct and populated? Use print_r() to get a snapshot of the array's contents.