Mp3 Request Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mp3 Request Help

    Code:
    else if($action=="mp3")
    {
    addonline(getuid_sid($sid),"Requesting a Mp3 :P","index.php?action=$action");
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo "<title>$sitename</title>
    <body>
    <p align=\"center\">
    Welcome $whoid plz fill out below form to order ur mp3
    
    </p>
    <div>
    <form action=\"index.php?action=send&amp;sid=$sid\" method=\"post\">
    Band Name:<input name=\"bandname\" maxlength=\"50\"/>
    
    Song Title:<input name=\"songtitle\" maxlength=\"255\"/>
    
    <input type=\"submit\" value=\"Submit\"/>
    </form>
    <div>
    <p align=\"center\">
    <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>
    </p>
    </body>
    </html>";
    
    }
    else if($action=="send")
    {
    addonline(getuid_sid($sid),"Mp3 Request Page","");
    echo "<title>Request Page</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo "<p align=\"center\">";
    $bandname = $_POST["bandname"];
    $songtitle = $_POST["songtitle"];
    $ownid[0]=1;
    $mp3rq = "$whoid has made an mp3 Request!,the song title is: ".$songtitle." and the band name is: ".$bandname." Please grant  This request as soon as possible.[br/][small][i]p.s: this is an automated pm[/i][/small]";
    autopm($mp3rq, $ownid[0]);
    $res = mysql_query("INSERT INTO mp3rq SET nick=&#39;".($nick)."&#39;, user=&#39;".($uid)."&#39;, songtitle=&#39;".($songtitle)."&#39;, bandname=&#39;".$bandname."&#39;");
    if($res)
    {
    echo "<img src=\"images/ok.gif\" alt=\"O\"/>Mp3 Request Complete Thank You $nick";
    }else{
    echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Requestion Mp3 Try Again $nick";
    }
    echo "
    
    ";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    echo "</p>";
    echo &#39;</body>&#39;;
    echo &#39;</html>&#39;;
    }
    the code above is for my mp3 request page works like the shop but when the message is sent me saying the song they requested it does not tell me the user that reqested the song plz help


    PHP CODE NEED CODE TAGS THANKS

    #2
    Code:
    else if($action=="mp3")
    {
    addonline(getuid_sid($sid),"Requesting a Mp3 :P","index.php?action=$action");
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo "<title>$sitename</title>
    <body>
    <p align=\"center\">
    Welcome $whoid plz fill out below form to order ur mp3
    
    </p>
    <div>
    <form action=\"index.php?action=send&amp;sid=$sid\" method=\"post\">
    Band Name:<input name=\"bandname\" maxlength=\"50\"/>
    
    Song Title:<input name=\"songtitle\" maxlength=\"255\"/>
    
    <input type=\"submit\" value=\"Submit\"/>
    </form>
    <div>
    <p align=\"center\">
    <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>
    </p>
    </body>
    </html>";
    
    }
    else if($action=="send")
    {
    addonline(getuid_sid($sid),"Mp3 Request Page","");
    echo "<title>Request Page</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo "<p align=\"center\">";
    $bandname = $_POST["bandname"];
    $songtitle = $_POST["songtitle"];
    $ownid[0]=1;
    $whon = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    $mp3rq = "$whoid has made an mp3 Request!,the song title is: ".$songtitle." and the band name is: ".$bandname." Please grant  This request as soon as possible.[br/][small][i]p.s: this is an automated pm[/i][/small]";
    autopm($mp3rq, $ownid[0]);
    $res = mysql_query("INSERT INTO mp3rq SET nick=&#39;".($nick)."&#39;, user=&#39;$whon[0]&#39;, songtitle=&#39;".($songtitle)."&#39;, bandname=&#39;".$bandname."&#39;");
    if($res)
    {
    echo "<img src=\"images/ok.gif\" alt=\"O\"/>Mp3 Request Complete Thank You $nick";
    }else{
    echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Requestion Mp3 Try Again $nick";
    }
    echo "
    
    ";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    echo "</p>";
    echo &#39;</body>&#39;;
    echo &#39;</html>&#39;;
    }
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      ok ill give it ago thanks man

      Comment


        #4
        Code:
        else if($action=="mp3")
        {
        addonline(getuid_sid($sid),"Requesting a Mp3 :P","index.php?action=$action");
        echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo "<title>$sitename</title>
        <body>
        <p align=\"center\">
        Welcome $whoid plz fill out below form to order ur mp3
        
        </p>
        <div>
        <form action=\"index.php?action=send&amp;sid=$sid\" method=\"post\">
        Band Name:<input name=\"bandname\" maxlength=\"50\"/>
        
        Song Title:<input name=\"songtitle\" maxlength=\"255\"/>
        
        <input type=\"submit\" value=\"Submit\"/>
        </form>
        <div>
        <p align=\"center\">
        <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>
        </p>
        </body>
        </html>";
        
        }
        else if($action=="send")
        {
        addonline(getuid_sid($sid),"Mp3 Request Page","");
        echo "<title>Request Page</title>";
        echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo "<p align=\"center\">";
        $bandname = $_POST["bandname"];
        $songtitle = $_POST["songtitle"];
        $ownid[0]=1;
        $whon = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
        $mp3rq = "$whoid has made an mp3 Request!,the song title is: ".$songtitle." and the band name is: ".$bandname." Please grant  This request as soon as possible.[br/][small][i]p.s: this is an automated pm[/i][/small]";
        autopm($mp3rq, $ownid[0]);
        $res = mysql_query("INSERT INTO mp3rq SET nick=&#39;".($nick)."&#39;, user=&#39;".$uid."&#39;, songtitle=&#39;".($songtitle)."&#39;, bandname=&#39;".$bandname."&#39;");
        if($res)
        {
        echo "<img src=\"images/ok.gif\" alt=\"O\"/>Mp3 Request Complete Thank You $nick";
        }else{
        echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Requestion Mp3 Try Again $nick";
        }
        echo "
        
        ";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
        echo "Home</a>";
        echo "</p>";
        echo &#39;</body>&#39;;
        echo &#39;</html>&#39;;
        }
        try that
        Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
        Visit: WapMasterz Coming Back Soon!
        _______
        SCRIPTS FOR SALE BY SUBZERO
        Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
        FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
        _______
        Info & Tips
        php.net
        w3schools.com

        Comment


          #5
          lol it works but when u go to request it, it says error and then says wen u click home session expired, but the PM still comes thru haha




          Comment


            #6
            pls give to my the sql of this reqest pls

            Comment

            Working...
            X