Hallo,
Mijn vorige topic was compleet van het echte onderwerp af dus even een nieuwe.
Ik heb problemen met de while functie wie zou hem mij kunnen uitleggen? Kom niet aan met google etc. want ik krijg het niet onder de knie.
Ik wil dat hij alle berichten echoëd
Mijn vorige topic was compleet van het echte onderwerp af dus even een nieuwe.
Ik heb problemen met de while functie wie zou hem mij kunnen uitleggen? Kom niet aan met google etc. want ik krijg het niet onder de knie.
Ik wil dat hij alle berichten echoëd
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/require"]require[/URL] [COLOR= #DD0000]connect.php[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT *
FROM `berichtenbalk` ORDER BY id DESC"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]);[/COLOR]
?>
<table border="1" width=500>
<tr>
<td><marquee direction="left" hspace=40><b>Berichten: </b>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]berichten[/COLOR][COLOR= #007700]][/COLOR] ?></marquee></td>
</tr>
</table>
<form name="input" action="berichtenbalk_post.php">
<input type=text name="bericht" />
<input type="submit" value="Plaats een bericht" />
</form>
</html> 
