Being absolutely new to php I have stumbled when trying to perform what is a very basic query
$query = 'SELECT question '
. ' FROM `master` '
. ' WHERE category = \'personal\', LIMIT 0, 150';
. ' WHERE area = \'tax\' LIMIT 0, 150';
// execute query
I want the agument to look at the category and then look at the area within that category and return an answer.
With the above I get the error "Parse error: parse error, unexpected '.' in /home/pencils/public_html/B1/qa_home/personal_q_tax.php on line 89"
From what I can tell I want to use the variant_and function but haven't been able to find how to write it properly.
Thanks
$query = 'SELECT question '
. ' FROM `master` '
. ' WHERE category = \'personal\', LIMIT 0, 150';
. ' WHERE area = \'tax\' LIMIT 0, 150';
// execute query
I want the agument to look at the category and then look at the area within that category and return an answer.
With the above I get the error "Parse error: parse error, unexpected '.' in /home/pencils/public_html/B1/qa_home/personal_q_tax.php on line 89"
From what I can tell I want to use the variant_and function but haven't been able to find how to write it properly.
Thanks