saad|_d3vil Posted August 25, 2008 Share Posted August 25, 2008 this is my coding <?php $con = mysql_connect("localhost","apnimusk","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("apnimusk_naat", $con); // check to see if id is set if(isset($_GET['id']) && is_numeric($_GET['id'])) { echo 'Your have requested ID #'.$_GET['id'].'<br />'; echo '<a href="sadasdas.php">Back</a>'; } // no id requested, display results else { $result = mysql_query("SELECT * FROM album"); while($row = mysql_fetch_assoc($result)) { echo '<a href="?id='.$row['id'].'">'.$row['age'].'</a> - ' . $row['name'] . " - " . $row['age'] . '<br />'; } } mysql_close($con); ?> i want to know that if someone click on any link it show that Your have requested ID #id number there is any way to make our own page or other table in this link Quote Link to comment Share on other sites More sharing options...
joquius Posted August 25, 2008 Share Posted August 25, 2008 First of all you might want to change that [/url] to </a>...^^ Apart from that, be more specific about want you want. What is your goal? Quote Link to comment Share on other sites More sharing options...
saad|_d3vil Posted August 25, 2008 Author Share Posted August 25, 2008 i want that it some one click on link it show my other database album see this site http://www.apnimuskaan.com/sadasdas.php i make database table in it click on link and you will understand Quote Link to comment Share on other sites More sharing options...
saad|_d3vil Posted August 25, 2008 Author Share Posted August 25, 2008 i want this that if some click on this link on my site http://www.apnimuskaan.com/sadasdas.php?id=1 it show another table on my database what the code i inserted for make other database table i have make the table my other table name is albums Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.