MySQL Forums
Forum List  »  PHP

Re: SQL syntax error
Posted by: Petri Rautiainen
Date: April 01, 2014 08:33AM

You need to add space to this part:

$sql .= "WHERE class_filter = '{$search_term}'";

like this:

$sql .= " WHERE class_filter = '{$search_term}'";

The sql query before looks something like this 'FROM playersWHERE...' and with the space 'FROM players WHERE...'

Options: ReplyQuote


Subject
Written By
Posted
March 20, 2014 11:00AM
March 20, 2014 05:06PM
March 21, 2014 02:13PM
Re: SQL syntax error
April 01, 2014 08:33AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.