Help with LONGTEXT, PHP/MYSQL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
DuckyDuck
Forum Newbie
Posts: 2
Joined: Fri Apr 02, 2010 2:57 am

Re: Help with LONGTEXT, PHP/MYSQL

Post by DuckyDuck »

Problem 1:
substring($string, 0, 20);
:)
Problem 2:
in the file that writes the textarea, you can change the linebreaks with <br> with the function $strung=nl2br($string);
Post Reply