Jump to content

Not printing a \n


vipsa

Recommended Posts

I have the following php script and get data from a database and prints in on a page however it does not print a carriage return. Why can this be?

 

The script:

<?php

include "database.inc";

mysql_select_db("php", $connection);

$result = mysql_query("SELECT * FROM orders", $connection);

while ($row = mysql_fetch_array($result, MYSQL_NUM))

{

foreach ($row as $attribute)

print "($attribute)";

print "\n";

}

?>

Link to comment
https://forums.phpfreaks.com/topic/249843-not-printing-a-n/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.