nl2br, new line to br
by alamster in March 20th, 2008
I just forget this function when my friend ask me about strangeness in his data he store in mysql.
He has address data in <textarea></textarea>, new line not converted to br as he thing. He just see all the input just store in single line.
After search for a while I remember this gold function :
nl2br () , new line to br
just make temporary variable before as :
$address=nl2br($address);
now $address will contain <br> tag in mysql database.
This post for remind me in future
Freelance Project:
- Audio Analysis and conversion. by forecaroli
- 300 MANUAL article submissions for each of 3 articles by flippy
- Auto Sizing Open Windows by reedyweb
- dvd 2 project by olf
- PHP/MySQL Database EXPERT by jasonp1
- ONIX XML Converter by PCSBOOKS
- Nonpublic project #311510 by MiracleHill
- Two Colones needed immediately. by niku72
- Clone dealnews.com CMS by shahrilfadzli
- Computer Program: Scheduling by meagher

No Comment
Random Post
Leave Your Comments Below