PHP beginner |
|
ik heb die code eens gebruikt:
<?php
include("dbconnect.php");
$sQuery = "SELECT * FROM downloads ORDER BY datum DESC";
$rResult = mysql_query($sQuery);
$list = '<table>
<tr>
<td colspan="2">Recent toegevoegd</td>
</tr>';
while($r = mysql_fetch_array($rResult)) {
$list .= '<tr><td>' .$r['downloadnaam']. '</td><td>' '<a href="'. $r['link'] . '">'. $r['downloadnaam'] . '</a>' '</td></tr>';}
$list .= '</table>';
echo $list;
?>
<?php include("dbconnect.php"); $sQuery = "SELECT * FROM downloads ORDER BY datum DESC"; $list = '<table> <tr> <td colspan="2">Recent toegevoegd</td> </tr>'; $list .= '<tr><td>' .$r['downloadnaam']. '</td><td>' '<a href="'. $r['link'] . '">'. $r['downloadnaam'] . '</a>' '</td></tr>';} $list .= '</table>'; ?>
maar dan krijg ik deze error:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/www/maigelswarez.freehostia.com/recentlyadded.php on line 48(in deze code is line 48 eigenlijk line 14) |