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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -

Why does a .NET 4.0 program produce a system.unauthorizedAccess error on a Windows Server 2012 machine with .NET 4.5 installed? -