• Hello,

    If I use the following code (part of a MySQL query in php)

    $searchStmt .= ("price >='$search_low' AND price <='$search_high'");

    The Greater than and Less than operators cause a problem and are seen as the end of the php code block. It’s fine if I use

    $searchStmt .= ("price =='$search_low' AND price =='$search_high'");

    I can’t use < > instead – they are not seen by MYSQL as operators

    Any way to solve that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter blobmallett

    (@blobmallett)

    And as a footnote if I use

    $searchStmt .= ("price BETWEEN '$search_low' AND '$search_high'");

    Instead there is no problem so clearly the > and < are causing the issue.

    So I’ve that as a workaround.

    Plugin Author cmorillas1

    (@cmorillas1)

    Thank you very much.
    I will try to fix it in next release.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Greater than symbol seen as php end’ is closed to new replies.