Re: HTTP format (linefeed in PHP)

Bogus Bill <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>

Arne K. Haaje wrote:
> 
> 
> In the response, just use the linefeed symbol \n
> 
> Like when using PHP;
> 
> echo "Text on line 1\nText on line 2";
> 
> This would produce a message with two lines :)
> 
> 

This did not work for me.  I am running 1.4.1, and am using PHP on my
website.  I want to give a list of scores, each separated by a linefeed. 
Here is a code snippet:

while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
    echo "{$row['visitor']} &amp;nbsp;" .
         "{$row['visitor_score']} &amp;nbsp;" . 
         "{$row['home']} &amp;nbsp;" .
         "{$row['home_score']} &amp;nbsp;" .
         "{$row['quarter']}" .
         "\n";
} 

The lines still run together.

Thanks for your help.

Bill Rigdon


-- 
View this message in context: http://www.nabble.com/HTTP-format-tp3405578p16538529.html
Sent from the Kannel - Dev mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.