I'm trying to create a mysql/php chat (private message) for my site using the "WHERE" clause in PHP.
SELECT * FROM (tablename) WHERE (columnname) = $_SESSION('MM_USERNAME')
However, I seem to only be able to search for plain text or my table "users.username" which brings up all results in table (not what I want). Is it possible to search from the username cookie variable?