Results 1 to 4 of 4

Thread: need help and hi to all

  1. #1
    Join Date
    Aug 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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.

  2. #2
    Join Date
    Aug 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Aug 2008
    Location
    Worldwide
    Posts
    11
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    OT (lol @ the postcount id of that link)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •