Hee One2xs,
In mijn lay-out (zonder php) krijg ik om-en-om een wit vlak en dan een grijs vlak. Dit doe ik doormiddel van:
Hieronder een screen:
Afbeelding niet beschikbaarDe bron kon niet worden geladen (www.imgdumper.nl).Bron openen ↗
Alleen nu er automatisch dingen uit de database worden gehaalt heb ik geen mogelijkheid meer om
toe te voegen en ziet het er nu zo uit:
Afbeelding niet beschikbaarDe bron kon niet worden geladen (www.imgdumper.nl).Bron openen ↗
Het betreffende stukje code:
Na hopeloos proberen ben ik er nog steeds niet achtergekomen, misschien hebben jullie een oplossing.
Alvast bedankt,
Steven
In mijn lay-out (zonder php) krijg ik om-en-om een wit vlak en dan een grijs vlak. Dit doe ik doormiddel van:
<div class="td-bg-gray"> Hieronder een screen:
Afbeelding niet beschikbaarDe bron kon niet worden geladen (www.imgdumper.nl).Bron openen ↗Alleen nu er automatisch dingen uit de database worden gehaalt heb ik geen mogelijkheid meer om
<div class="td-bg-gray"> toe te voegen en ziet het er nu zo uit:
Afbeelding niet beschikbaarDe bron kon niet worden geladen (www.imgdumper.nl).Bron openen ↗Het betreffende stukje code:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/class"]class[/URL] Top[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] laatst[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 Filmpjes ORDER BY datum DESC LIMIT 10"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$string[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"<i>Er zijn nog geen nummers toegevoegd, of de database is foetsie ..</i>"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[COLOR= #0000BB]$string[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"<table>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$film[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700])){[/COLOR]
[COLOR= #0000BB]$string[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]<div class="lst"><img src="http://url/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$film[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]genre[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]" width="50" height="50" /><div class="nmr"><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$film[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]?fs=1&hl=nl_NL&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$film[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]?fs=1&hl=nl_NL&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="30" height="25"></embed></object> <font color="#000000">[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$film[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] </font></div><div class="vlg"><a href="http://www.youtube.com/watch?v=[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$film[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]" target="_blank"><img src="images/link.png" border="0" /></a>[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$film[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]artiest[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000] </div></div></div>[/COLOR][COLOR= #007700];
}[/COLOR]
[COLOR= #0000BB]$string[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"</table>"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/return"]return[/URL] [COLOR= #0000BB]$string[/COLOR][COLOR= #007700];
}
}[/COLOR]
[COLOR= #0000BB]$Top[/COLOR] [COLOR= #007700]= new[/COLOR] Top[COLOR= #007700];[/COLOR]
?> Na hopeloos proberen ben ik er nog steeds niet achtergekomen, misschien hebben jullie een oplossing.
Alvast bedankt,
Steven
.