Jump to content

[SOLVED] download softwares


saad|_d3vil

Recommended Posts

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

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.