RE: [PHP] Re: Question.

From: Date: Thu, 06 Sep 2001 11:23:38 +0000
Subject: RE: [PHP] Re: Question.
Groups: php.general 
Request: Send a blank email to php-general+get-66199@lists.php.net to get a copy of this message
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

« previous php.general (#66199) next »