I am trying to use
$var = "
<?php
if ($_SERVER['REQUEST_METHOD'] == "POST") {
$reply = $_POST['reply'];
$query = 'insert into reply (threadId,reply) values (' . $GLOBALS["id"] . ',' . $reply . ')';
}
?>
"
it throws out "Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)" What should I do?