Well guys i have a stupid problem here.
I need to display text from database witch has couple paragraphs.
When i drop it on the screen it shows up but it seems like there is no wrap on it, it is all in continues line.
When i look in to database or try to update it with update record is showing up as multi line, just how it should be.
It is stored in the database as text.
Any ideas what am i doing wrong ?
Here is the script.
<?php require_once('Connections/newDB.php');
session_start();
?>
<?php
$colname_userprofileRS = "-1";
if (isset($_SESSION['kt_login_id'])) {
$colname_userprofileRS = (get_magic_quotes_gpc()) ? $_SESSION['kt_login_id'] : addslashes($_SESSION['kt_login_id']);
}
mysql_select_db($database_newDB, $newDB);
$query_userprofileRS = sprintf("SELECT * FROM userprofile WHERE id = %s", $colname_userprofileRS);
$userprofileRS = mysql_query($query_userprofileRS, $newDB) or die(mysql_error());
$row_userprofileRS = mysql_fetch_assoc($userprofileRS);
$totalRows_userprofileRS = mysql_num_rows($userprofileRS);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style2 {font-size: 12px}
-->
</style>
</head>
<body>
<p>Welcome Back: <?php echo $row_userprofileRS['realname']; ?></p>
<p> </p>
<p>Profile:</p>
<div align="left">
<p><?php echo $row_userprofileRS['login']; ?><br>
<?php echo $row_userprofileRS['email']; ?><br>
<br>
<?php echo $row_userprofileRS['smallinfo']; ?></p>
</div>
<p> </p>
<p><a href="update.php">Update Profile</a> </p>
</body>
</html>
<?php
mysql_free_result($userprofileRS);
?>