Hello i would like the code for a user donate plusses to another through the user profile. If possible post the code and complete tables in the database
Give plusses for lavalair
Collapse
X
-
in index.php
Code://////////////////////////////////////////Share Plusses else if($action=="sharepl") { $who = $_GET["who"]; addonline(getuid_sid($sid),"Sharring Plusses",""); echo "<card id=\"main\" title=\"$sitename\">"; echo "<onevent type=\"onenterforward\">"; echo "<refresh> <setvar name=\"tfgp\" value=\"0\"/>"; echo "</refresh></onevent>"; echo "<p align=\"center\">"; echo "script by Rukiya"; echo "<br/>"; echo "<b>Give Plusses To ".getnick_uid($who)."</b><br/><br/>"; $ps = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".getuid_sid($sid)."'")); echo "You have $ps[0] Plusses<br/><br/>"; echo "Plusses to give<br/>"; echo "<input name=\"tfgp\" format=\"*N\" maxlength=\"2\"/>"; echo "<br/><anchor>Give"; echo "<go href=\"genproc.php?action=sharepl&sid=$sid&who=$who\" method=\"post\">"; echo "<postfield name=\"ptg\" value=\"$(tfgp)\"/>"; echo "</go></anchor>"; echo "<br/><br/><a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; } usage CODE echo "<a href=\"index.php?action=sharepl&who=$who&sid=$sid\">Share Plusses</a><br/>";
Code://////////////////////////////////////////Share plusses else if($action=="sharepl") { addonline(getuid_sid($sid),"Sharring Plusses",""); $who = $_GET["who"]; $ptg = $_POST["ptg"]; echo "<card id=\"main\" title=\"$sitename\">"; echo "<p align=\"center\">"; //$uid = getuid_sid($sid); $psf = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'")); $pst = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'")); if($psf[0]>=$ptg){ $psf = $psf[0]-$ptg; $pst = $pst[0]+$ptg; $res = mysql_query("UPDATE ibwf_users SET plusses='".$pst."' WHERE id='".$who."'"); if($res) { $res = mysql_query("UPDATE ibwf_users SET plusses='".$psf."' WHERE id='".$uid."'"); echo "<img src=\"../images/ok.gif\" alt=\"o\"/>Plusses Updated Successfully<br/>"; }else{ echo "<img src=\"../images/notok.gif\" alt=\"x\"/>Database Error!<br/>"; } }else{ echo "<img src=\"../images/notok.gif\" alt=\"x\"/>You don't have enough Plusses to give<br/>"; } echo " script by rukiya"; echo "<br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; }
Comment
-
plusses are not updated..:confused:
now i got it working.. i used codes from wap.net.phLDSWAPWORLD sigpic
site closed.
im busy with other things in life like facebook , send me PM so i can add you
www.pinoySG.com
don't ask for help if you're not even helping yourself!
i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.
Comment
-
Originally posted by doriann View PostHello test the code for it is more like a version wml xhtml version set to go in this version of wml not give the option to accesLDSWAPWORLD sigpic
site closed.
im busy with other things in life like facebook , send me PM so i can add you
www.pinoySG.com
don't ask for help if you're not even helping yourself!
i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.
Comment
Comment