I'm trying to concat $_SESSION["username"] with $q. I've tried several ways but can't seem to concat the two.
Attempts
VALUES ('".$_SESSION["username"] + $q."', '".$_SESSION["username"]."', '$q')
VALUES ('".$_SESSION["username"]." + $q', '".$_SESSION["username"]."', '$q')
VALUES ('".$_SESSION["username"]. + $q"', '".$_SESSION["username"]."', '$q')
I've looked up string operators but I think the syntax is slightly different with the $_SESSION[] variable.
http://php.net/manual/en/language.operators.string.php