Results 1 to 2 of 2

Thread: need help in php code

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

    Default need help in php code

    hi some one can help me out how to make php page like this page http://www.funmaza.com/softwares.html my php code is
    Code:
    <?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);
    ?>
    now i want that if some click on my link so the link show in id but it download software

    Thank you in advance

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I don't really know what your talking about, I don't even know if that page is yours. But I made this script awhile ago:
    http://www.dynamicdrive.com/forums/s...light=download
    You can use in your PHP.
    Jeremy | jfein.net

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
  •