Search found 4 matches

by adamwhiles
Mon Nov 08, 2004 7:52 pm
Forum: PHP - Code
Topic: mysql and php question
Replies: 6
Views: 662

it was a typo, i fixed that lol....thanks alot man =]
by adamwhiles
Mon Nov 08, 2004 7:46 pm
Forum: PHP - Code
Topic: mysql and php question
Replies: 6
Views: 662

actually it does work, thanks =]
by adamwhiles
Mon Nov 08, 2004 7:36 pm
Forum: PHP - Code
Topic: mysql and php question
Replies: 6
Views: 662

So with the code below work you think? <?PHP function Truncate ($str, $length=100, $trailing='...') &#123; // take off chars for the trailing $length-=strlen($trailing); if (strlen($str) > $length) &#123; // string exceeded length, truncate and add trailing dots return substr($str,0,$length)...
by adamwhiles
Mon Nov 08, 2004 6:52 pm
Forum: PHP - Code
Topic: mysql and php question
Replies: 6
Views: 662

mysql and php question

I have a database that has poems in it. Question number one is how do i keep the returns like where a new line starts. In the database it keeps it, but when i echo the contents of the table in php it loses the formatting. second question is: the poems are long and I just want to display a portion li...