This is a snippet of my code showing where the error is:
[php]$query_check_user_id = $this->db_connection->query(“SELECT * FROM UserRelation WHERE UserID_FK = '”.$this->session_user_id."’, FriendID_FK =’".$this->user_id"’ ;");[/php]
However, when it runs I get an error saying Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /www/99k.org/v/i/d/vidbeta/htdocs/search_user.php on line 40
Does anyone have a clue what is wrong here?
If you haven’t found it already, it’s because of invalid concatenation near the end, it should be:
[php]$query_check_user_id = $this->db_connection->query(“SELECT * FROM UserRelation WHERE UserID_FK = '”.$this->session_user_id."’, FriendID_FK =’".$this->user_id."’ ;");[/php]