-
need help and hi to all
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);
?>
Last edited by saad_d3vil; 08-25-2008 at 05:40 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.
-
-
http://dynamicdrive.com/forums/showp...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?
-
-
OT (lol @ the postcount id of that link)
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks