hi
so sieht meine datei aus um die news anzuzeigen:
und folgender fehler kommt:
Parse error: parse error in D:\pfad\read.php on line 40
line 40 ist übrigens </html>
cu
pluto
so sieht meine datei aus um die news anzuzeigen:
PHP:
<html>
<head>
<title>news</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?php
define (NL,"\n");
$cx=odbc_pconnect("news","x","y","");
$cur=odbc_exec($cx,"SELECT * FROM [News] where [Newsid]=$id");
while(odbc_fetch_row($cur)){
$id=odbc_result($cur,1);
$newsart=odbc_result($cur,2);
$titel=odbc_result($cur,3);
$text=odbc_result($cur,4);
$zeit=odbc_result($cur,5);
$temp=explode("-",$zeit);
$temp2=explode(" ",$temp[2]);
$temp3=explode(":",$temp2[1]);
?>
<table width="100%" border="0">
<tr>
<td><?php echo "$title" .NL; ?></td>
<td>
<?php echo "$temp2[0].$temp[1].$temp[0] - $temp3[0]:$temp3[1]" .NL; ?>
</td>
</tr>
<tr>
<td colspan="2">
<?php echo "$text" .NL; ?>
</td>
</tr>
<tr>
<td>text1</td>
<td>test2</td>
</tr>
</table>
<p> <br>
</p>
</body>
</html>
und folgender fehler kommt:
Parse error: parse error in D:\pfad\read.php on line 40
line 40 ist übrigens </html>
cu
pluto