how can sort my dates by php/mysql? -
i'm trying change sorting date of stores localized in map (wp plugin: store-locator-le) php , mysql. insert date in phone field, before have change field in date. can me?
$this->dbquery = apply_filters('slp_mysql_search_query', "select *,str_to_date(sl_phone, '%d-%m-%y') date ". "from store_locator ". 'order date asc' );
if write sql code in mysql phpmyadmin, works!
the problem apply_filter function. using %%d-%%m-%%y query
Comments
Post a Comment