Jump to content

Masked download link


moffo

Help me?  

1 member has voted

  1. 1. Help me?

    • Yes
      1
    • No
      0


Recommended Posts

Hello,

 

Could someone help me to make my own link like that: download.asp?download=song1&songid=14918&letter=T&servern=3

 

When you click on it will redrect to the download file.

 

Please anyhelp? i'm new here also!

 

Regards

Link to comment
Share on other sites

assuming the link is http://site.com/index.php?songid=14918

 

Note: this lacks many simple aspects like security, logic, etc.  But if you don't understand this then you need to study up more as you are in over your head.

<?php
$get=mysql_query("SELECT path FROM songs WHERE song_id='$_GET[songid]'");
if(mysql_num_rows($get)==1){
    $get=mysql_fetch_array($get);
    echo '<a href="http://site.com'.$get['path'].'">Click Here</a>';
{
else{
    //invalid song id
}
?>

Link to comment
Share on other sites

You are not going to get any help when you don't even try to learn what they are telling you to do. If you want someone to make it for you, than you should check the freelance forum. Unless some really nice person comes along the way.

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.