Lid |
|
Ik wil graag de laatste 10 forum berichten laten zien + een link daarnaar toe:
<?php
$selectlatest = "SELECT * FROM forumanswer ORDER BY id DESC LIMIT 0, 10";
$select = mysql_query($selectlatest);
while ($forumanswer = mysql_fetch_array($select)){
$question_id = substr ($forumanswer['a_name'], 0, 10);
echo "<li><a class=\"normallink\" href=\"index.php?p=view_topic&id=".$forumanswer['question_id']."\">Door:".$a_name."</a></li>";
}
?></ol>
</div> </td>
</tr>
<?php $selectlatest = "SELECT * FROM forumanswer ORDER BY id DESC LIMIT 0, 10"; $question_id = substr ($forumanswer['a_name'], 0, 10); echo "<li><a class=\"normallink\" href=\"index.php?p=view_topic&id=".$forumanswer['question_id']."\">Door:".$a_name."</a></li>"; } ?></ol> </div> </td> </tr>
maar hij blijft deze foutmelding geven:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in blablblabla.php on line 9
iemand een ideetje:D?
|