PDA

View Full Version : need help and hi to all



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);
?>

Nick Souls
08-25-2008, 09:03 PM
I would like to help - however I fail to understand your problem.

I see that when 23 is clicked it brings up the new page which grabs data from the database, it seems to work fine.

my friend, please rephrase your question so I can guide you better.

Twey
08-26-2008, 02:08 AM
http://dynamicdrive.com/forums/showpost.php?p=158839&postcount=1337
1.1, 1.2, 1.3, 1.4, 4.1.

I'd like to help more, but I'm afraid I can't understand your question. Could you rephrase?

Nightfire
08-27-2008, 01:42 AM
OT (lol @ the postcount id of that link)