Skip to main content
Known Participant
January 20, 2021
Question

conditions in app connect

  • January 20, 2021
  • 2 replies
  • 406 views

In my old site (for php 5) I used in the query: WHERE Jaartal < Year (CURDATE())-25
i am upgrading the site to php 7, but it seems that this 'Year (CURDATE())-25 ' is not good anymore?
I connect to a mysql database

 

 

 

This topic has been closed for replies.

2 replies

BenPleysier
Community Expert
Community Expert
January 20, 2021

As Nancy has rightly stated, this is a PDO query. If you have a close look at the created query

You will see that you are selecting a year that is less than 0. Unless you have catered for negative years, you will not get any results.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Nancy OShea
Community Expert
Community Expert
January 20, 2021
Nancy O'Shea— Product User & Community Expert