Op een site waarvoor ik een heel CMS systeem heb geschreven wordt er na de PHP code niks meer met de stijl gedaan.
Zie hieronder de code.
Mocht je de site zelf willen zien: www.scdepaardensprong.nl
Zie hieronder de code.
[COLOR= #0000BB]<?php
$sql_1[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT * FROM nieuwsberichten ORDER BY bericht_id DESC LIMIT 8"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$resultaat[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql_1[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/while"]while[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$rij[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$resultaat[/COLOR][COLOR= #007700])){[/COLOR]
[COLOR= #0000BB]$titel[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$rij[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$kort[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$rij[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]kort[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$id[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$rij[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht_id[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$datum[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$rij[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]datum[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$siteurl[/COLOR] [COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.scdepaardensprong.nl/nieuwsuitgebreid.php?id=$id"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" <div class=fp_article>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]" <p><strong><a href=$siteurl > $titel </a></strong><br />"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span class=date> $datum </span><br />"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$kort[/COLOR] [COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<br />"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<a href=$siteurl> Lees meer </a>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"</p></div></div></div><br /> "[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/mysql_free_result"]mysql_free_result[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$resultaat[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/mysql_close"]mysql_close[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$verbinding[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]// Vanaf hier gaat het mis met de stijlen, hij geeft 1 bericht weer, en de rest niet....[/COLOR]
?>
<div id="fp_ads">
<div style="text-align:centre" color="black">Voor meer artikelen, kijk in het <a href=nieuws.php> nieuwsoverzicht!</a></div></div>
<a href="#top">Naar boven</a> </div>
<div id="main_right">
<div class="black_box">
<div class="blue_bar2">
<div id="sidebar">
<h1>Poll</h1>
</div>
</div>
<h3> Op dit moment is er geen poll beschikbaar.</h3>
Deze komt zo snel mogelijk weer online
</div>
<div id="main_right">
<div class="black_box">
<div class="blue_bar2">
<div id="sidebar">
<h1>Schaakprobleem sept/okt</h1>
</div>
</div>
<img src="images/schaakprobleemseptember.jpg" hight="250px" width="250" /><br />
<br />
<h4>Wit speelt en wint.Oplossing mailen naar Ronald, voor het
einde van de maand</h4>
</div>
<div id="main_right">
<div class="black_box">
<div class="blue_bar2">
<div id="sidebar">
<h1>Schaakprobleem juli</h1>
</div>
</div>
<img src="images/schaakprobleemjuli.jpg" hight="250px" width="250" /><br />
<br />
<h4>wit speelt en wint</h4>
<h6> Natuurlijk speelt wit eerst e7. Na deze zet heeft zwart
alleen het patgrapje Ld8!
Als de pion promoveert en een Dame of Toren kiest is het pat!
Wit wint door: e8L. Minorpromotie heet dat. De zwarte Koning staat
hierna klem.
Twee mogelijkheden zijn er nu zwart begint:<br />
La5, Ld7+, Kd8, Lh4 mat<br />
Lg5, Lc7, en mat volgt na iedere zwarte zet Ld7</h6>
</div>
<div id="main_right">
<div class="black_box">
<div class="blue_bar2">
<div id="sidebar">
<h1>Informatie gids</h1>
</div>
</div>
<img src="images/info.gif" hight="200px" width="200" /><br />
<br />
<a href="documenten/SCDe_Paardensprong_Infogids_2009_-_2010_%284%29%5B1%5D.doc">
Informatie over onze schaakclub vind je in de infogids, die je hier
kunt downloaden </a> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!----><!-- Shadow Right --><!-- Shadow Left --><!---- footer -->>
<!-- Wrapper -->
[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/require"]require[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]footer.php[/COLOR][COLOR= #007700]);[/COLOR] ?> Mocht je de site zelf willen zien: www.scdepaardensprong.nl
