Is there a way to dynamically obtain query conditions in TP5 and not add this condition if the value is empty?
3维
3维 2019-10-05 13:58:01
0
0
1284

As shown in the figure below, there are three query conditions. The first two are time intervals, and the last one is a fuzzy query based on name.

QQ截图20191005135037.jpg

If the content written at the beginning is empty, then the data with the field value being null will be returned according to the where condition. So I added two if statements

QQ截图20191005135057.jpg

I would like to ask if there is an easier way, thank you%

3维
3维

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template