Please "\n" problem????

From: Date: Sun, 13 Jan 2002 01:25:50 +0000
Subject: Please "\n" problem????
Groups: php.general 
Request: Send a blank email to php-general+get-80314@lists.php.net to get a copy of this message
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

« previous php.general (#80314) next »