Database Error in take-upload-bonus.php on line 34: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '''' at line 1. Query was: UPDATE `users` SET `uploaded` = `uploaded` + '1073741824' WHERE `class` = ''= 8''. Database Error in take-upload-bonus.php on line 40: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''= 8'' at line 1. Query was: UPDATE users SET uploaded = uploaded+1073741824 WHERE class '= 8'.$res = SQL_Query_exec("UPDATE users SET uploaded = uploaded+1073741824 WHERE class $class"); if (($upthis > 0 || $downthis > 0 || $elapsed > 0) && is_valid_id($userid)){ // LIVE STATS!)
if ($torrent["freeleech"] == 1){
SQL_Query_exec("UPDATE users SET uploaded = uploaded + $upthis WHERE id=$userid") or err("Tracker error: Unable to update stats");
SQL_Query_exec("UPDATE LOW_PRIORITY `snatched` SET `uload` = `uload` + '$upthis', `dload` = `dload` + '$downthis', `utime` = '".gmtime()."', `ltime` = `ltime` + '$elapsed' WHERE `tid` = '$torrentid' AND `uid` = '$userid'");
}
elseif ($torrent["doubleupload"] == 2){
//$upthis = ($upthis+$upthis);
SQL_Query_exec("UPDATE users SET uploaded = uploaded + ($upthis*2), downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error: Unable to update stats");
SQL_Query_exec("UPDATE LOW_PRIORITY `snatched` SET `uload` = `uload` + '$upthis'*2, `dload` = `dload` + '$downthis', `utime` = '".gmtime()."', `ltime` = `ltime` + '$elapsed' WHERE `tid` = '$torrentid' AND `uid` = '$userid'");
}
if ($torrent["silver"] == 1){
SQL_Query_exec("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + ($downthis/2) WHERE id=$userid") or err("Tracker error: Unable to update stats");
SQL_Query_exec("UPDATE LOW_PRIORITY `snatched` SET `uload` = `uload` + '$upthis', `dload` = `dload` + '$downthis'/2, `utime` = '".gmtime()."', `ltime` = `ltime` + '$elapsed' WHERE `tid` = '$torrentid' AND `uid` = '$userid'");
}
}function class_user($name) {
global $site_config;
$a ="SELECT class, donated, warned, enabled FROM `users` WHERE username ='".$name."'";
$res = SQL_Query_exec($a);
$classy = @mysqli_fetch_row($res);
switch ($classy[0]) {
case 8: // Site Owner
$col = "".$site_config["siteowner_color"]."";
break;
case 7: // Administrator
$col = "".$site_config["administrator_color"]."";
break;
case 6: // Super Moderator
$col = "".$site_config["super_moderator_color"]."";
break;
case 5: // Moderator
$col = "".$site_config["moderator_color"]."";
break;
case 4: // Uploader
$col = "".$site_config["uploader_color"]."";
break;
case 3: // VIP
$col = "".$site_config["vip_color"]."";
break;
case 2: // Power User
$col = "".$site_config["power_user_color"]."";
break;
case 1: // User
$col = "".$site_config["user_color"]."";
}if($classy[1]>0){
$star="<img src='".$site_config[SITEURL]."/images/donor.gif' width='16' height='16' alt='donated' border='0'>";
}else{ $star="";}
if($classy[2]=="yes"){
$warn="<img src='".$site_config[SITEURL]."/images/warned.gif' width='11' height='11' alt='warned' border=0>";
}else{ $warn=""; }
if($classy[3]=="no"){
$disabled="<img src='".$site_config[SITEURL]."/images/disabled.png' alt='disabled' border=0>";
}else{ $disabled=""; }
return unesc("<font color='".$col."'>".$name."".$star."".$warn."".$disabled."</font>");
} Database Error in admincp.php on line 339: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM xxx_filter' at line 1. Query was: TRUNCATE FROM xxx_filter.
STorrents2020:Maybe hosting is the issue. My dedicated 1U is in my closet on 2 sturdy Uhaul boxes lolI have never had a limit in anything I ever wanted to do. I highly recommended just pulling $550US and grabbing a PowerEdge with low specs. Your now left with the commitment of your local LAN.Hosting is restrictive due to the potential actions by the customer - they eliminate c99 shells, embedded PNGs with <? potential (I actually check images for these on my site, it was very hard to do and took 2 days for my code), root access elevations & buffer overflows - Which is why they disallow certain modules. It could kill their business and all those effected. Look at it as a good thing, however takes a little care to make your endeavors compatible. Your using PHP, its easy trust me. Python would have you running circles lol
STorrents2020:Anyway, what is the error mesage?
M-jay:try https://torrenttrader.uk/topic?topicid=9837 & im sure there was a block somewhere as well
STorrents2020:Why on earth are you adding non-integer values as the primary key in your table? Is that even possible?The code is perfect. Trust me, I would get out of your database before other things begin to go haywire, just a word of advice. This is why experienced never encourage others clearly in need of help to race over and start editing fields/types/Engines.