|
Dernière réponse | |
---|---|
Sujet : Comment formater mon texte (PHP et MySQL) ? | |
dilyfe | Bizarre, essaie peut etre ca, une fonction qui te formates le texte tel que tu l'as entré dans la base.
J'ai cette fonction en ASP, voies si tu peux l'adapter facilement en PHP... Function FormatStr(String) String = Replace(String, CHR(13), "" ) String = Replace(String, CHR(10) & CHR(10), "</P><P>" ) String = Replace(String, CHR(10), "<BR>" ) FormatStr = String End Function Et tu l'appeles de la manière suivante : FormatStr(db("Nom_Champ" )) Voila, enfin si c ca. Dilyfe |
Vue Rapide de la discussion |
---|