Bonjour !
$sdating_events_res = db_res( "SELECT ID,Title,Place,UNIX_TIMESTAMP(NOW())/60 as Now_m,UNIX_TIMESTAMP(WhenStart)/60 as WhenStart_m,UNIX_TIMESTAMP(WhenStop)/60 as WhenStop_m,WhenStart,WhenStop,DATE_FORMAT(WhenStart,'%e %M %Y (%a) %H:%i') as WhenStart2,DATE_FORMAT(WhenStop,'%e %M %Y (%a) %H:%i') as WhenStop2,LEFT(Description,$preview_length) AS Description,Country,StateProvince,City,Address,PhotoPlace,Responsible,RespPhone,RespEmail,TicketsCountM,TicketsPriceM,TicketsCountF,TicketsPriceF,TicketsCountC,TicketsPriceC,MatchesCount,SaleStart,SaleStop,Type,Status FROM `sdating_events` ORDER BY WhenStart DESC" );
Ce script contient une fonction date_format().
Jusque la tout est super !
Le seul hic : ca me sort monday , january au lieu de lundi et janvier (Nb. j'ai besoin du jour en lettre, donc une fonction en 12/02/2006 ben : non, loll)
Qq saurait ? (merci)