saad_d3vil
08-25-2008, 05:13 PM
Hi to all i hope that people like me and give my answer i need help in php i make one sql database table on this link http://www.apnimuskaan.com/sadasdas.php here i have make a sql database table and there is a text 23 when who ever click on 23 it goes to this link http://www.apnimuskaan.com/sadasdas.php?id=1 and there people see Your have requested ID #1 Back i want to change "Your have requested ID #1 Back " this in my another sql database table how i make sql database table in the table my code of the http://www.apnimuskaan.com/sadasdas.php is
<?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'].'
';
echo '<a href="sadasdas.php">Back ';
}
// no id requested, display results
else
{
$result = mysql_query("SELECT * FROM album
WHERE name='Timmy Mellowman'");
while($row = mysql_fetch_array($result))
{
echo $row['name'] . " " . "<a href='?id=".$row['id']."'>".$row['age']."</a>";
echo "<br />";
}
}
mysql_close($con);
?>
<?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'].'
';
echo '<a href="sadasdas.php">Back ';
}
// no id requested, display results
else
{
$result = mysql_query("SELECT * FROM album
WHERE name='Timmy Mellowman'");
while($row = mysql_fetch_array($result))
{
echo $row['name'] . " " . "<a href='?id=".$row['id']."'>".$row['age']."</a>";
echo "<br />";
}
}
mysql_close($con);
?>