Attempting to format the text in rows returned in a query with paragraph breaks - line breaks.
$query = "SELECT * FROM $tblname WHERE fname LIKE '$sname%'";
$link = mysql_connect($host, $user, $pass);
$result = mysql_db_query($dbname, $query, $link);
while ($row = mysql_fetch_array($result)) {
print ("$row[fname]");
print (" ");
$row[article] = nl2br($row[article]);
print ("$row[article]");
print ("<p>");
}
It actually works sans the following error on each line returned.
NOTICE: Use of undefined constant article - assumed 'article' in ..... \searchform.php on line 20
Line 20 is blank