Jump to content

[SOLVED] Parse error: syntax error, unexpected T_CONST.....


nathanmaxsonadil

Recommended Posts

Does anyone know what's the matter with this code?

It gives me this error

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in my_dir/myfile.php on line 50

 

myfile.php

 
44 if (base64_decode($_GET['need']) != "" && $_GET['delete'] == "true") {
45 $query = "DELETE FROM thing WHERE need = '" . base64_decode($_GET['need']) . "'";
46 mysql_query($query) or die(mysql_error());
47 $query2 = "INSERT INTO thingpend (pend)
48 VALUES ('" . base64_decode($_GET['need']) . "\" . $session->userinfo['email'] . "')";
49 mysql_query($query2) or die(mysql_error());
50 echo "<div id='mes'><ul><li>Thanks</li></ul></div>";
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.