I assume you your displaying a web page. HTML ignores \n ... You need to insert a <br>.
----- Original Message ----- From: "Dani" <[EMAIL PROTECTED]> To: "PHP LIST" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]