<?php
$sql="SELECT * FROM parentid WHERE id = '$doi'";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result))
{
$abc_output .= $row['title'] . "\n" ;
$abc_output .= $row['reportno'] . "\n" ;
}
}
echo $abc_output;
?>
Above is the following code i am using..
i want the output to be
title
reportno
but the output i am getting is
title reportno
can any one suggest me what i am doing wrong in line break ??
You need to add a
<br />tag to your output