VOTING SCRIPT PROBLEM

11/01/2016 04:53 Cloud'#1
Votepoints won't add, can anyone help me?

Votingscript

Pingback
11/01/2016 20:01 xTwiLightx#2
Any errors shown in the PHP error log?
Replace the \'3\' with 3, so remove the escaped quote signs. votepoints - votepoints2 are for sure integers, but you are trying to add a string to a number. This might work in PHP somehow, but fails in a lot of languages, this includes SQL.
11/02/2016 13:14 Cloud'#3
Quote:
Originally Posted by xTwiLightx View Post
Any errors shown in the PHP error log?
Replace the \'3\' with 3, so remove the escaped quote signs. votepoints - votepoints2 are for sure integers, but you are trying to add a string to a number. This might work in PHP somehow, but fails in a lot of languages, this includes SQL.

Still wont work
11/04/2016 18:20 raventh1984#4
Make an check to see if you got any errors.

Code:
if($success == 0)
{
odbc_exec($mssql, 'USE [ACCOUNT_DBF]'); 
odbc_exec($mssql, 'UPDATE [ACCOUNT_TBL] SET votepoints=votepoints+3 WHERE account=\''.mssql_escape_string($pingUsername ).'\'');
odbc_exec($mssql, 'UPDATE [ACCOUNT_TBL] SET votepoints1=votepoints1+3 WHERE account=\''.mssql_escape_string($pingUsername ).'\'');
odbc_exec($mssql, 'UPDATE [ACCOUNT_TBL] SET votepoints2=votepoints2+3 WHERE account=\''.mssql_escape_string($pingUsername ).'\'');
}
else
{
	echo 'There was an error';
}
In that case if you see on you web. There was an error then you can ask your self why is $_POST['Successful'] giving me an error :D.
11/04/2016 19:49 xTwiLightx#5
Quote:
Originally Posted by Cloud' View Post
Still wont work
Then check your PHP error logs...
11/05/2016 07:55 Cloud'#6

This is my php error log. :(