i have got so far . i have tried loads of variations of codes etc. cant get it to update correctly with the amount you click on . plus its only updating my own profile by 1 everytime i choose something. even if its a 9 it only goes up by 1.
it dont update other users at all .so as u see i need help lol . i done the hard work then get stuck.
can anyone help . ta
an update . worked out its not adding the ratings together . all its its doing is if i choose rate 4 it updates the database to 4. and if i again choose rate 2 it updates it to 2 . instead of adding the 4 and 2 together. am lost .anyone ??
// Let's see how many is there count it up
$rate = mysql_fetch_array(mysql_query("SELECT COUNT(*) rate FROM wap_users WHERE id='".$uid."' "));
// Let's add the rate + so the rate add's to the data
$id = $rate[0]+$rate;
// Ok.... done Lets send the query!!
$res = mysql_query("UPDATE wap_users SET rate='$id' WHERE id='".$uid."'");
// query has being sent to mysql Job done!
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...
_______…
// Let's see how many is there count it up
$rate = mysql_fetch_array(mysql_query("SELECT COUNT(*) rate FROM wap_users WHERE id='".$uid."' "));
// Let's add the rate + so the rate add's to the data
$go = $rate[0]+$rate;
// Ok.... done Lets send the query!!
$res = mysql_query("UPDATE wap_users SET rate='$go' WHERE id='".$uid."'");
// query has being sent to mysql Job done!
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...
_______…
////////////////////
else if($action=="rate")
{
$rate = $_POST["rate"];
$bid = $_GET["bid"];
addonline(getuid_sid($sid),"Rating a member","");
//$uid = getuid_sid($sid);
echo "<head>";
echo "<title>$sitename</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
// Let's see how many is there count it up
$rate = mysql_fetch_array(mysql_query("SELECT COUNT(*) rate FROM wap_users WHERE id='".$uid."' "));
// Let's add the rate + so the rate add's to the data
$go = $rate[0]+$rate;
// Ok.... done Lets send the query!!
$res = mysql_query("UPDATE wap_users SET rate='$go' WHERE id='".$uid."'");
// query has being sent to mysql Job done!
if($res)
{
echo "<img src=\"../images/ok.gif\" alt=\"o\"/> rated successfully
";
}else{
echo "<img src=\"../images/notok.gif\" alt=\"x\"/>Database Error!
";
}
}else{
echo "<img src=\"../images/notok.gif\" alt=\"x\"/>You have rated this user before
";
echo "
";
echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p></body>";
}
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...
_______…
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...
_______…
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...
_______…
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...
_______…
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...
_______…
////////////////////
else if($action=="rate")
{
$rate = $_POST["rate"];
$bid = $_GET["bid"];
addonline(getuid_sid($sid),"Rating a member","");
//$uid = getuid_sid($sid);
echo "<head>";
echo "<title>$sitename</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
// Let's see how many is there count it up
$rate = mysql_fetch_array(mysql_query("SELECT COUNT(*) rate FROM wap_users WHERE id='".$uid."' "));
// Let's add the rate + so the rate add's to the data
// replace rate with ccreate
$ccrate ="$rate";
$go = $rate[0]+$ccrate;
// Ok.... done Lets send the query!!
$res = mysql_query("UPDATE wap_users SET rate='$go' WHERE id='".$uid."'");
// query has being sent to mysql Job done!
if($res)
{
echo "<img src=\"../images/ok.gif\" alt=\"o\"/> rated successfully
";
}else{
echo "<img src=\"../images/notok.gif\" alt=\"x\"/>Database Error!
";
}
}else{
echo "<img src=\"../images/notok.gif\" alt=\"x\"/>You have rated this user before
";
echo "
";
echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p></body>";
}
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...
_______…
////////////////////
else if($action=="rate")
{
$rate= mysql_real_escape_string( $_REQUEST["rate"] );
$bid = mysql_real_escape_string( $_REQUEST["bid"] );
$who = mysql_real_escape_string( $_REQUEST["who"] );
addonline(getuid_sid($sid),"Rating a member","");
//$uid = getuid_sid($sid);
echo "<head>";
echo "<title>$sitename</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
// Let's see how many is there count it up
$addplus = mysql_fetch_array(mysql_query("SELECT rate FROM wap_users WHERE id='".$who."'"));
// Let's add the rate + so the rate add's to the data
// replace rate with ccreate
$add = $rate;
$addplus = $add + $addplus[0];
// Ok.... done Lets send the query!!
$res = mysql_query("UPDATE wap_users SET rate= '".$addplus."' WHERE id='".$who."'");
// query has being sent to mysql Job done!
if($res)
{
echo "<img src=\"../images/ok.gif\" alt=\"o\"/> rated successfully
";
}else {
echo "<img src=\"../images/notok.gif\" alt=\"x\"/>You have rated this user before
";
}
echo "
";
echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p></body>";
}
dave inbox me on msn or sumat and al sort it out for ya.