Re: [PHP-DB] Newline help...

2002-12-05 Thread Ignatius Reilly
If you're on a Window$ system, try \r\n instead of \n

Ignatius

- Original Message -
From: "NIPP, SCOTT V (SBCSI)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 05, 2002 5:28 PM
Subject: [PHP-DB] Newline help...


> I must be stupid, because I cannot for the life of me figure out why
> I am not getting newlines from some very simply 'echo' statements.  Here
is
> the portion of the code below, and I am getting everything run together on
a
> single line:
>
>echo $list['id-sys'] . "\n";
>   $sys = split('-', $list['id-sys']);
>   echo "$sys[1]\n";
>   } while ($list = mysql_fetch_assoc($result));
>
>
> I am truly stumped by this.  It is quite frustrating that something
> as simple as a newline can misbehave.  I have been searching for this on
the
> PHP site, newsgroups, and in a couple of books I have and yet I am still
> stumped.  Help please.  Thanks.
> Scott Nipp
> Phone:  (214) 858-1289
> E-mail:  [EMAIL PROTECTED]
> Web:  http:\\ldsa.sbcld.sbc.com
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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




RE: [PHP-DB] Newline help...

2002-12-05 Thread NIPP, SCOTT V (SBCSI)
Why does the documentation everywhere seem to imply that you can use
the typical newline character?  This is most confusing.  I seem code
examples all over the place using newlines.  Oh well, now I know.  Thanks.

-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 10:34 AM
To: NIPP, SCOTT V (SBCSI); [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Newline help...


HTML doesn't render newlines, only . Look at your HTML source code and
the newlines are there.

or,

if you're on windows, use \r\n for newlines.

---John Holmes...

- Original Message -
From: "NIPP, SCOTT V (SBCSI)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 05, 2002 11:28 AM
Subject: [PHP-DB] Newline help...


> I must be stupid, because I cannot for the life of me figure out why
> I am not getting newlines from some very simply 'echo' statements.  Here
is
> the portion of the code below, and I am getting everything run together on
a
> single line:
>
>echo $list['id-sys'] . "\n";
>   $sys = split('-', $list['id-sys']);
>   echo "$sys[1]\n";
>   } while ($list = mysql_fetch_assoc($result));
>
>
> I am truly stumped by this.  It is quite frustrating that something
> as simple as a newline can misbehave.  I have been searching for this on
the
> PHP site, newsgroups, and in a couple of books I have and yet I am still
> stumped.  Help please.  Thanks.
> Scott Nipp
> Phone:  (214) 858-1289
> E-mail:  [EMAIL PROTECTED]
> Web:  http:\\ldsa.sbcld.sbc.com
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

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




Re: [PHP-DB] Newline help...

2002-12-05 Thread 1LT John W. Holmes
HTML doesn't render newlines, only . Look at your HTML source code and
the newlines are there.

or,

if you're on windows, use \r\n for newlines.

---John Holmes...

- Original Message -
From: "NIPP, SCOTT V (SBCSI)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 05, 2002 11:28 AM
Subject: [PHP-DB] Newline help...


> I must be stupid, because I cannot for the life of me figure out why
> I am not getting newlines from some very simply 'echo' statements.  Here
is
> the portion of the code below, and I am getting everything run together on
a
> single line:
>
>echo $list['id-sys'] . "\n";
>   $sys = split('-', $list['id-sys']);
>   echo "$sys[1]\n";
>   } while ($list = mysql_fetch_assoc($result));
>
>
> I am truly stumped by this.  It is quite frustrating that something
> as simple as a newline can misbehave.  I have been searching for this on
the
> PHP site, newsgroups, and in a couple of books I have and yet I am still
> stumped.  Help please.  Thanks.
> Scott Nipp
> Phone:  (214) 858-1289
> E-mail:  [EMAIL PROTECTED]
> Web:  http:\\ldsa.sbcld.sbc.com
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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




[PHP-DB] Newline help...

2002-12-05 Thread NIPP, SCOTT V (SBCSI)
I must be stupid, because I cannot for the life of me figure out why
I am not getting newlines from some very simply 'echo' statements.  Here is
the portion of the code below, and I am getting everything run together on a
single line:

http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php