Hi. I have implemented the following code: <?php require_once 'lib/config.php'; $str= $_REQUEST["id"].":".$_REQUEST["snuid"].":".$_REQUEST["currency"].":".$MYSECRETFBKEYHERE; If ($_REQUEST["verifier"]==md5($str)){ if( !empty($_REQUEST['snuid']) ) { $res = query("UPDATE `cu_users` SET `upoints` = (`upoints`+$_REQUEST[currency]) WHERE `userid`=$_REQUEST[snuid]"); if( $res ) { echo 1; } else { echo 0; } } if( !empty($_REQUEST['new']) ) { $res = query("UPDATE `cu_users` SET `upoints` = (`upoints`+$_REQUEST[new]) WHERE `userid`=$_REQUEST[uid]"); if( $res ) { echo 1; } else { echo 0; } } //Rockyou implementation if( !empty($_REQUEST['userId']) ) { $res = query("UPDATE `cu_users` SET `upoints` = (`upoints`+$_REQUEST[currencyAmt]) WHERE `userid`=$_REQUEST[userId]"); if( $res ) { echo 1; } else { echo 0; } } } //echo "test"; //CPA integration $subid = $_REQUEST['subid']; $survey = $_REQUEST['survey']; $earn = $_REQUEST['earn']; $pdtshow = $_REQUEST['pdtshow']; if( !empty($_REQUEST['subid']) ) { $res = query("UPDATE `cu_users` SET `upoints` = (`upoints`+".$pdtshow.") WHERE `userid`=".$subid.""); echo "ok"; if( $res ) { echo "Success: ".$subid." earned ".$pdtshow." points\n"; } else { echo 0; } } else { echo "you have attempted to steal from me"; die; } ?> Code (markup): I'm obtaining this error: Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/algarzon/public_html/facebook/update.php on line 5. Can u help me?. I don't know what the problem is.
<?php require_once 'lib/config.php'; $str = $_REQUEST['id'].":".$_REQUEST['snuid'].":".$_REQUEST['currency'].":".$MYSECRETFBKEYHERE; if ($_REQUEST['verifier'] == md5($str)) { if( !empty($_REQUEST['snuid']) ) { $res = mysql_query("UPDATE `cu_users` SET `upoints` = (`upoints` + ".$_REQUEST['currency'].") WHERE `userid` = ".$_REQUEST['snuid'].""); echo ($res) ? 1 : 0; } if( !empty($_REQUEST['new']) ) { $res = mysql_query("UPDATE `cu_users` SET `upoints` = (`upoints` + ".$_REQUEST['new'].") WHERE `userid` = ".$_REQUEST['uid'].""); echo ($res) ? 1 : 0; } //Rockyou implementation if( !empty($_REQUEST['userId']) ) { $res = mysql_query("UPDATE `cu_users` SET `upoints` = (`upoints` + ".$_REQUEST['currencyAmt'].") WHERE `userid` = ".$_REQUEST['userId'].""); echo ($res) ? 1 : 0; } } //echo "test"; //CPA integration $subid = $_REQUEST['subid']; $survey = $_REQUEST['survey']; $earn = $_REQUEST['earn']; $pdtshow = $_REQUEST['pdtshow']; if( !empty($_REQUEST['subid']) ) { $res = mysql_query("UPDATE `cu_users` SET `upoints` = (`upoints`+".$pdtshow.") WHERE `userid`=".$subid.""); echo "ok"; if( $res ) echo "Success: ".$subid." earned ".$pdtshow." points\n"; else echo 0; } else { echo "you have attempted to steal from me"; die; } ?> PHP: I don't know if that will help yah
None of the solutions worked. I have tried this, but then it shows me another error: Parse error: syntax error, unexpected T_DNUMBER in /home/algarzon/public_html/facebook/update.php on line 5 Any other idea? Thanks