How Can I Give A Special Link To Every Post In Php?
as you can see I'm making a 'post' using echo. I'm 'echoing' the data from the database table. I need a special link that will lead to only specific post, like every post should ha
Solution 1:
Change your echo to something like this:
echo'<div style ="text-align:center; font-size: 100%; margin-top: 9%; font-family:Arial, Helvetica, sans-serif"><a href="url.php?id='.$row["ID"].'"' . "Nick: " . $Nick . '</a></div>';
So that you pass the ID of the particular result in the URL. And in that page you can get the ID using $_GET['id']
.
Having the ID, you can easily query and display results for the particular record.
Post a Comment for "How Can I Give A Special Link To Every Post In Php?"