Mp3 Request Help

Started on the old forum in November 2007 · view the original in the archive · old links redirect here

5 replies · 600 views · started 19 years ago · 1 min read

2 participants
Guest #1
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&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&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='".($nick)."', user='".($uid)."', songtitle='".($songtitle)."', bandname='".$bandname."'");
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&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo '</body>';
echo '</html>';
}

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

subzero Super moderator Fellow · 3,954 posts #2
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&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&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='".$uid."'"));
$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='".($nick)."', user='$whon[0]', songtitle='".($songtitle)."', bandname='".$bandname."'");
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&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo '</body>';
echo '</html>';
}

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... _______…

Guest #3

ok ill give it ago thanks man

subzero Super moderator Fellow · 3,954 posts #4
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&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&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='".$uid."'"));
$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='".($nick)."', user='".$uid."', songtitle='".($songtitle)."', bandname='".$bandname."'");
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&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo '</body>';
echo '</html>';
}

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... _______…

Guest #6

pls give to my the sql of this reqest pls

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close