Hey,
Als je UBB zo in de Database zet hoe krijg je dan dat het op een pagina als HTML weergeven wordt?
Zeg maar [UBB ==> HTML]
Als je UBB zo in de Database zet hoe krijg je dan dat het op een pagina als HTML weergeven wordt?
Zeg maar [UBB ==> HTML]
[COLOR= #0000BB]<?php
$gethome[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM users WHERE name = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$naam[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$home[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$gethome[/COLOR][COLOR= #007700])) {[/COLOR]
[COLOR= #0000BB]$verhaal[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$ubb[/COLOR][COLOR= #007700]->[/COLOR]UBB[COLOR= #007700]([/COLOR] [COLOR= #0000BB]$home[/COLOR][COLOR= #007700][[/COLOR] [COLOR= #DD0000]verhaal[/COLOR] [COLOR= #007700]] );[/COLOR]
?>
wat divjes en dan [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$verhaal[/COLOR] ?>
[COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]}[/COLOR] ?> Luukvdo schreef:Hij maakt ook gebruik van een functie, maar die zit IN een classDat komt op hetzelfde neer, alleen maak jij gebruik van een class ipv een functie
