S
S
Sergey2017-08-02 15:53:15
MODX
Sergey, 2017-08-02 15:53:15

How to make a query in pdoResource where by add. fields?

such a where in pdoResources

{
  "price.value:>":46133,
  "price.value:<":66387,
  "power.value:>":136,
  "power.value:<":224,
  "overclocking.value:>":6.0,
  "overclocking.value:<":10.0,
  "template:=":12
}

All these fields are optional, add. the fields are stored in the database as text, so the question is, how can I compare the data on my request? the request works with integers (price, power), but it doesn't work with overclocking. What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question