ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

read DB - datatime conditions

livingwebstudio 29 Apr, 2017
Hi,
I would like to insert a conditions in my db read.. I have a table with a datatime value and I want to select only row with datatime major than X
<?php
$data='2017-04-26';
 return array("strtotime:(datainizio) > {strtotime($data)}");
this condition doesn't work....
Max_admin 29 Apr, 2017
Hi livingwebstudio,

Please try this:
<?php
$data='2017-04-26';
return array("datainizio >" => strtotime($data));

I assumed that your table field name is "datainizio"

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com