CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 How to show abstract from article?

Print topic Send  topic

Author Message
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
>
>
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.