remplace tes double cote par des simples:
$rq = "SELECT idmanif,nom,description,date_format(datedeb,'d/m/Y') as date1,date_format(datefin,'d/m/Y') as date2 FROM manifestation WHERE miseune='OUI' AND datefin >=CURRENT_DATE() ORDER BY RAND()";
ou alors tu les echappes:
$rq = "SELECT idmanif,nom,description,date_format(datedeb,\"d/m/Y\") as date1,date_format(datefin,\"d/m/Y\") as date2 FROM manifestation WHERE miseune='OUI' AND datefin >=CURRENT_DATE() ORDER BY RAND()";
EDIT: tu as trouve, tant mieux. Penses aus tag
Partager