Here's my error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/dannyf/public_html/secure/processmessage.php on line 4
Here's my code (the DB connection is set with $this->connection.
<?
include("include/session.php");
$q = "INSERT INTO ".TBL_MESSAGES." VALUES ('$_POST['to']', '$session->username', '$_POST['message']')";
return mysql_query($q, $this->connection);
?>