Question
Help With PHP syntax variable
I'm getting an error on PHP code that is supposed to generate a MYSQL query from an advanced search form. The following error is appearing:
Parse error: syntax error, unexpected T_VARIABLE in /Users/arisspenjian/Sites/cementmonkey/results.php on line 62
I can't figure out what's wrong with the code.
58 mysql_select_db($database_cementmonkey, $cementmonkey); 59 $query_rsMainItems = 'SELECT * FROM mainitems'; 60 $where = false; 61 if (isset($_GET['category']) && !empty($_GET['category'])) { 62 $query_rsMainItems .= 'WHERE category = '. GetSQLValueString($_GET['category'], 'text'); 63 $where = true;
Any ideas?
