Mate
|
| Posted: 06/17/2005, 5:10 AM |
|
This is dummy question guess, and maybe not exact forum for.
How to show short abstract from long text article field starting from
begining of article (php/mysql)?
(Similar to RSS news feed)
Bit more complicated. What if text content is html code?
Drazen
|
|
|
 |
Damian Hupfeld
|
| Posted: 07/10/2005, 5:48 AM |
|
Add Custom Code to BEFORE SHOW on Label.
global $var;
$ grid->label->SetValue(substr($grid->label->GetValue(),X, Y));
X = first charater returned
Y = last character returned
I dont think that you could do it when the content is HTML - or maybe you
can...maybe you could do a string replace to remove all html tags and then
do the SUBSTR from above.
$message = strip_tags($grid->label->GetValue(), '<br>');
removes all html tags except <br>
$message = str_replace ("\n", "<BR>", "$message");
replaces all <br> with carriage returns
regards
Damian Hupfeld http://www.nexthost.com.au/services.php
"Mate" <drazen@radez.hr> wrote in message
news:d8uejt$mhp$1@news.codecharge.com...
> This is dummy question guess, and maybe not exact forum for.
>
> How to show short abstract from long text article field starting from
> begining of article (php/mysql)?
>
> (Similar to RSS news feed)
>
> Bit more complicated. What if text content is html code?
>
> Drazen
>
>
>
|
|
|
 |
|