Home  >  Q&A  >  body text

tp6, assign value to variable, query database with multiple conditions

$where = "BETWEEN January 1 AND February 1";

As per the question, how do I use tp6's where() query after assigning a value to a variable?

sadadasadada1651 days ago1307

reply all(1)I'll reply

  • 别被风景迷了眼

    别被风景迷了眼2020-03-23 16:04:07

    where(['field name'=>['between',['start time','end time']]]);

    reply
    0
  • Cancelreply