У вас запрос чутка неправильный собирается, примерно такой:
select * from table where 1 and where 2 and where 3
ps.
Сообщение от riaron
|
if(req.cookies.vprodaj=='checked'){
otherwhere=otherwhere+' AND WHERE count>0 ';
}
if(req.cookies.soskidkoi=='checked'){
otherwhere=otherwhere+' AND WHERE (`price` -`price` / 100 * `sale`) >0 ';
}
|
var firsrtString = 'hello';
var secondString = 'hello';
firsrtString = firsrtString + ' world';
secondString += ' world';
alert(firsrtString === secondString);