Hallo,
Heb iets gemaakt in PHP. Alleen krijg ik niet het gewenste resultaat. Momenteel heb ik dit. Maar alles staat onder elkaar. Het is de bedoeling dat alles naast elkaar komt te staan. Wie kan me hiermee helpen? Hier de code:
Heb iets gemaakt in PHP. Alleen krijg ik niet het gewenste resultaat. Momenteel heb ik dit. Maar alles staat onder elkaar. Het is de bedoeling dat alles naast elkaar komt te staan. Wie kan me hiermee helpen? Hier de code:
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]//Data uit database halen en sorteren op Naam[/COLOR]
[COLOR= #0000BB]$ophalen[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM member_covers WHERE active = 1 ORDER BY tId DESC LIMIT 10"[/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]
[COLOR= #FF8000]//Maak variable van de gegevens uit de database[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$Row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ophalen[/COLOR][COLOR= #007700])){[/COLOR]
[COLOR= #0000BB]$onderwerp[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$Row[/COLOR][COLOR= #007700]->[/COLOR]tOnderwerp[COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$url[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$Row[/COLOR][COLOR= #007700]->[/COLOR]tUrl[COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$id[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$Row[/COLOR][COLOR= #007700]->[/COLOR]tId[COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$type[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$Row[/COLOR][COLOR= #007700]->[/COLOR]tType[COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$categorie[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$Row[/COLOR][COLOR= #007700]->[/COLOR]tCategorie[COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"<marquee>"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$categorie[/COLOR][COLOR= #007700]==[/COLOR]DVD[COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"<a href="http://www.coverpaleis.nl/cover/$id"><img src="http://www.coverpaleis.nl/thumbs/$url" width="240" height="150"></a>"[/COLOR][COLOR= #007700]);
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"<a href="http://www.coverpaleis.nl/cover/$id"><img src="http://www.coverpaleis.nl/thumbs/$url" width="240" height="133"></a>"[/COLOR][COLOR= #007700]);
}[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"</marquee>"[/COLOR][COLOR= #007700]);
}[/COLOR]
?> 

