Click here to Skip to main content
11,802,636 members (71,272 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: PHP MySQL
Hi All,

I have problem with my dynamic page, in the index.php i have 3 link that connect to database and each one has ID , when I click on hyperlink the dynamic page show on the other page on URL with ID like this : page01.php?id=6 , and change in to page01.php, the problem is that : how can get this ID in the page01.php to show only that specific ID information such as Image and description. it's like news page, when click on news link , next page just show description of that link.

thank you

$p = $_GET['page'];
		$page = "Applications/XAMPP/xamppfiles/htdocs/register/".$p.".php";
			echo "This is Home Page";
<a href="page01.php?id=<?php echo $row['id']?>">



if (isset($_GET['ID'])) {
    $id  = mysql_real_escape_string($_GET['ID']);
$result = mysqli_query($con,"SELECT * FROM upload WHERE id='1' ORDER BY id DESC");
		 if (mysql_num_rows() > 0) {
        $upload = mysql_fetch_object($res);
   echo "<h2>" . $rows['Image'] . "</h2>";

    else {
        // member does not exist with ID
Posted 19-Apr-13 22:11pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

this the way to solve this question check this out the video

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 KrunalRohit 366
1 OriginalGriff 365
2 F-ES Sitecore 295
3 Afzaal Ahmad Zeeshan 230
4 CPallini 230
0 OriginalGriff 2,950
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,695
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 20 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100