Re: Please "\n" problem????
| From: | Dennis Moore | Date: | Sat, 12 Jan 2002 22:46:33 +0000 |
| Subject: | Re: Please "\n" problem???? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80316@lists.php.net to get a copy of this message | ||
I assume you your displaying a web page. HTML ignores \n ... You need to
insert a <br>.
----- Original Message -----
From: "Dani" <universal2001@iprimus.com.au>
To: "PHP LIST" <php-general@lists.php.net>
Sent: Saturday, January 12, 2002 8:25 PM
Subject: [PHP] Please "\n" problem????
> Hi!
>
> thanks for reviewing this email.
>
> I have wrote this script and I have checked it but for some reasons (I
> don't know what) it doesn't work.
>
> Could any body please check and give some feedback please?
>
> <?PHP
>
> include("heading.inc");
>
> echo "Result :\n"; ------------------------->>> THIS DOESN'T GIVE ME
> A
> NEW LINE- WHY ?????
>
>
> //CONNECT TO SERVER
> include("connect.inc");
>
> //CONNECT DATABASE
> include("select_db.inc");
>
> $query = "select * from main_table where item_type = '$type' and class =
> '$class' ";
> $result = mysql_query($query);
>
> $row = mysql_fetch_array($result);
>
> echo ("$row[item_id]\n"); ------------------------->>>> THIS DOESN'T
> GIVE ME A NEW LINE EITHER, WHY ??????
>
> while ($row = mysql_fetch_array($result))
> {
> echo "$row[item_type]" , "$row[class]";
> }
>
> ?>
>
>
> Any reply is greatly appriciated
>
> Regards,
> Dani
>
>
> --
> 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
>