Re: Re: Question.
| From: | Daniel Masur | Date: | Thu, 06 Sep 2001 11:34:23 +0000 |
| Subject: | Re: Re: Question. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66203@lists.php.net to get a copy of this message | ||
echo $os\n;
"\n" does a "newline" in php, that u only will see in your sourcecode
or
echo "$os\n<br>\n";
will do a brake in the source, and one in online layout
better read php.net first, before posting suh stuff here.
"Johan Vikerskog" <Johan.Vikerskog@emp.ericsson.se> schrieb im Newsbeitrag
news:A9D7A677B724D411A8B600204840355E03515147@eseldnt102.ld.sw.ericsson.se..
.
> ok i have this:
> <?php
> include "../config.php";
>
> $result = mysql_query("SELECT os from sdb_entries");
>
> while($row=mysql_fetch_array($result))
>
> {
> $os = $row["os"];
> echo $os;
> }
>
> ?>
>
> Now i want the echo to make a new line instead of putting everything into
one large chunk.
> Help?!?
>
> //Johan the senile
>
> -----Original Message-----
> From: _lallous [mailto:elias_bachaalany@yahoo.com]
> Sent: den 6 september 2001 12:44
> To: php-general@lists.php.net
> Subject: [PHP] Re: Question.
>
>
> how you mean it/be more specific?
>
> while (list(, $value) = each($array))
> {
> echo "value = $value\n";
> }
> "Johan Vikerskog" <Johan.Vikerskog@emp.ericsson.se> wrote in message
>
news:A9D7A677B724D411A8B600204840355E0351513C@eseldnt102.ld.sw.ericsson.se..
> .
> > I have done this before but my memory fails me.
> >
> > I am trying to just loop threw ny array and display it.
> > one row per result.
> > How do you do that again?
> >
> > //Johan
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net