Dit is mijn fout: Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /home/xtahosted/domains/connectxs.org/public_html/testnieuws.php on line 17

Mijn source:
<html>

<head>
<meta http-equiv="Content-Language" content="nl-be">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Door</title>
</head>

<body>
<?
include "config.php";

$select = "SELECT * FROM updates ORDER by id DESC LIMIT 0,10";
$query = mysql_query($select) or die (mysql_error());
while ($list = mysql_fetch_object($query)) {

echo "<table width="50%" border="1" height="192" bordercolor="#000000">
<tr>
<td class="titel" width="34%" height="21">Door:$list->naam&nbsp;@$list->datum</td>
<td class="titel" width="64%" height="21">$list->titel</td>
</tr>
<tr>
<td class="p" height="21">Afbeelding:</td>
<td class="datum" height="21" valign="top">Bericht:</td>
</tr>
<tr>
<td class="p" height="56"><img border="0" src="$list->afbeelding" width="100" height="100"></td>
<td class="p" height="56">$list->bericht</td>
</tr>
<tr>
<td class="p" valign="top"><hr width="100%" size="2" noshade>&nbsp;</td>
<td class="p" valign="top"><hr width="100%" size="2" noshade></td>
</tr>
</table><br><br>";
}
echo "<br>";
?>

</body>

</html>
alles werkt alleen wil hij geen 2 br gebruiken ik wil dat er 1 lijn tussen elk nieuws bericht komt...:p


<?
include "config.php";

$select = "SELECT * FROM nieuws ORDER by id DESC LIMIT 0,5";
$query = mysql_query($select) or die (mysql_error());
while ($list = mysql_fetch_object($query)) {

echo '<table border="1" bordercolor="#000000" width="455" cellspacing="0" bordercolorlight="#000000" bordercolordark="#000000" cellpadding="0">';

echo '<tr>';
echo '<td height="37" width="454" colspan="2">'.$list->titel.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td height="78" width="102">Door: '.$list->naam.'</td>';
echo '<td height="132" width="342" rowspan="2">'.$list->bericht.'</td>';
echo '</tr>';
echo '<tr>';
echo '<td height="83" width="102">Op: '.$list->datum.'</td>';
echo '</tr>';
echo '</table>';
}
echo '<br><br>';
?>
Ok bedankt nu werkt heel men script

nog een vraagje..
als ik <> tags gebruik
flipt heel me mysql hoe kan ik da verhlpen????:p
ik dacht door hiervoor iets te plaats

<?php
include ("config.php");
mysql_query("INSERT INTO nieuws(datum,bericht,naam,titel) VALUES('$datum','$bericht','$naam','$titel')") or die(mysql_error());
?>
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=index.php">
<> tags?
ja
niemand?:(:p
Manaus, topics bumpen graag pas na 24 uur. Die META tag hoort in de <head> sectie te staan en niet zomaar ergens in je php code.
ok dankje wel srry voor het gebump maar het was nogal dringend :P
manaus schreef op 10.07.2006 22:15
ok dankje wel srry voor het gebump maar het was nogal dringend :P
Ja, en? Dat is toch echt jouw probleem, had je maar eerder aan je script moeten beginnen.

Niet bumpen dus, ook al heb je de hulp nog zo hard nodig.

Reageren