<br> ved linjeskift med MySQL
Jeg har lavet et news script, paster det lige.<?
$db = mysql_connect(\"kirsten.andersenit.dk\", \"enemydk\", \"ukg68nur\");
mysql_select_db(\"enemydk\",$db);
$result = mysql_query(\"SELECT * FROM news ORDER BY article DESC\",$db);
while ($myrow = mysql_fetch_row($result)) {
echo \"<tr>\";
echo \"<td>\";
echo \"<table width=\\\"100%\\\" border=\\\"0\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\" class=\\\"td1\\\" bgcolor=\\\"#243130\\\">\";
echo \"<tr>\";
echo \"<td>\";
echo \"<table width=\\\"100%\\\" border=\\\"0\\\" cellspacing=\\\"1\\\" cellpadding=\\\"0\\\">\";
echo \"<tr>\";
echo \"<td align=\\\"left\\\" class=\\\"td3\\\" bgcolor=\\\"#87A5A2\\\">\";
echo \"<font face=\\\"verdana\\\" color=\\\"#000000\\\" size=\\\"2\\\"> <b>$myrow[1]</b></font>\";
echo \"</td>\";
echo \"</tr>\";
echo \"<tr>\";
echo \"<td align=\\\"left\\\" class=\\\"td2\\\" bgcolor=\\\"#A1B6B4\\\">\";
echo \"<table width=\\\"100%\\\" border=\\\"0\\\" cellspacing=\\\"0\\\" cellpadding=\\\"4\\\">\";
echo \"<tr>\";
echo \"<td>\";
echo \"<font face=\\\"arial\\\" color=\\\"#000000\\\" size=\\\"2\\\">$myrow[3]</font>\";
echo \"<div align=\\\"right\\\"><font face=\\\"verdana\\\" color=\\\"#000000\\\" size=\\\"1\\\"> - Posted $myrow[4] - $myrow[2]</font></div>\";
echo \"</td>\";
echo \"</tr>\";
echo \"</table>\";
echo \"</td>\";
echo \"</tr>\";
echo \"</table>\";
echo \"</td>\";
echo \"</tr>\";
echo \"</table>\";
echo \"</td>\";
echo \"</tr>\";
}
?>
Jeg vil meget gerne have scriptet til at sætte <br> når der er linjeskift i $myrow[3]
Nok simpelt, men jeg har godt nok ikke lige nogen anelse.