php - Order by desc datetime field not working -


i have simple sql statement grabs news records , orders them desc.

select * news title '%ford%' order pubdate desc limit 5 

my php below:

    $results = mysql_query("select * news title '%ford%' order pubdate desc limit 5");      while($row = mysql_fetch_array($results))     {        echo stuff     } 

the field pubdate datetime , result display earlier records , not latest.

i have never had problem before, thoughts?


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -