Nieuw lid |
|
Wat is er fout?
<?php
$query = "SELECT id, datum, DATE_FORMAT(datum, '%d/%m/%Y') AS datum FROM news LIMIT 2";
while($row = mysql_fetch_assoc($query))
{
echo '<h3>' . $row['titel'] . '</h3><br />';
echo '[' . $row['datum'] . ']<p>';
echo $row['bericht'];
echo '</p><br />';
}
?>
<?php $query = "SELECT id, datum, DATE_FORMAT(datum, '%d/%m/%Y') AS datum FROM news LIMIT 2"; { echo '<h3>' . $row['titel'] . '</h3><br />'; echo '[' . $row['datum'] . ']<p>'; } ?>
De error: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/###/domains/###.be/public_html/tijdelijk/index2.php on line 71
Lijn 71: while($row = mysql_fetch_assoc($query))
|