i have a code where the elements of a dvd shud be viewd not in a line but with new lines when the user views the elements...
<?php
include('session.php');
include('session_check.php');
?>
<?php
include('database.php');
if(isset($_SESSION['user_name']))
{
$session=$_SESSION['user_name'];
$sql1="select * from user_table where user_name like '%$session%' ";
$result1=mysql_query($sql1);
$row1=mysql_fetch_array($result1);
$id=$row1['id'];
$sql="select * from dvd_info where user_id like '%$id%' ";
$result=mysql_query($sql);
while($row=mysql_fetch_array($result))
{
echo "Dvd Name : ".$row['dvd_name'];
echo"</br>";
$array=array();
$array=split(",",$row['contents']);
$size=count($array);
echo "Contents:";
for($i=0;$i<$size;$i++)
{
echo $array[$i];
}
//echo " Contents :".$row['contents'];
echo "<br /><br />";
}
}
?>
<form action="home.php" method="post">
<center>
<input type="submit" value="Home" >
</center>
here the contents come up in a line...how can i seperate each content by new line/? by the way i hav asked the users to enter the contents when they save them separateing by ENTER.