Re: [PHP] Imap, reading the email-body

2005-10-19 Thread Nahalingam N. Kanakavel
hi,

I think that I understood you problem some what,
if you are having newline character (\n) in you string ,
then you can use Regular expression to replace the \n character
with br / tag.

why can't you try something like the following

-code
?php
/* this is the convert newline character(s) into br/ tag */
$string = this is to first_line\nthis is second line.\nthird line;

$search = '@[\n]+@';
$replace = 'br /';

$result = preg_replace($search, $replace, $string);
print $result;
?
--
if your input is like the value of $string then this will help you.

On 10/19/05, Bruno Gola [EMAIL PROTECTED] wrote:

 Hi guys,

 I need some help with the imap_body function and how to work with the
 string that this function returns...

 Im working on a mailing list archive website and i'm using the imap_*
 functions to handle this, the header works fine (and other things too)
 but the Body of the message dont work as expected. It came as one-line
 string, the \n character (or br in html) is simple ignored. I dont
 know how to make the function translate the \n to br.


 You can understand better what i'm saying looking:

 http://www.brunogola.com.br/testeimap.php

 Look the main page and try to read any message... I dont know what can i
 do to fix it...

 Thanks for any help and sorry any mistakes about my english...

 Bruno Gola

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


--
with regds,
Nahalingam.


[PHP] help me to draw a listview in my website

2005-09-12 Thread Nahalingam N. Kanakavel
hi all,

If any scripts available to draw a list view.
Plz help me, by giving some links or scripts avilable with you.

thanks in advance.

-- 
with regds,
Nahalingam.


Re: [PHP] help me to draw a listview in my website

2005-09-12 Thread Nahalingam N. Kanakavel
hi,

I want to display several fields of values as a row, with header such as

-- |
Name age mail-id | Header part, by clicking over this I want to sort the
--- | rows 
below this.
. 
here rows of values. 
.
-

On 9/12/05, Gustav Wiberg [EMAIL PROTECTED] wrote:
 
 Hi there!
 
 What do you mean with listview? Of what?
 
 /G
 http://www.varupiraten.se/
 
 - Original Message -
 From: Nahalingam N. Kanakavel [EMAIL PROTECTED]
 To: PHP php-general@lists.php.net
 Sent: Monday, September 12, 2005 11:05 AM
 Subject: [PHP] help me to draw a listview in my website
 
 
 hi all,
 
 If any scripts available to draw a list view.
 Plz help me, by giving some links or scripts avilable with you.
 
 thanks in advance.
 
 --
 with regds,
 Nahalingam.
 
 
 
 
 
 
 
 No virus found in this incoming message.
 Checked by AVG Anti-Virus.
 Version: 7.0.344 / Virus Database: 267.10.21/96 - Release Date: 2005-09-10
 
 


-- 
with regds,
Nahalingam.