Heey allemaal,
Ik heb een probleempje op deze pagina; de gegevens staan niet op de goede plek.
Aangezien ik nooit met tabellen werk is dit best een vervelend klusje.
Degene die zorgt dat alles goed onder elkaar komt te staan krijg 0.2 als hij de oplossing vóór 23:00 naar mij toe stuurt, of in dit topic zet!
Gr.
Jos
EDIT: Is al opgeloste, volgende is mij alleen niet duidelijk: Waarom gebruiken sommigen dit:
{$var[gebruikersnaam]}?
Ik heb een probleempje op deze pagina; de gegevens staan niet op de goede plek.
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<span class="fout">Je bent niet ingelogged.<br /></span>[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<table width="100%" cellspacing="0" cellpadding="0">[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<tr style="background:#a4c1ce;"><td><strong>Naam</strong></td><td><strong>Actie</strong></td><td><strong>Verwijderen</strong></td></tr>[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM gebruikers WHERE nepprofiel = 1"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$var[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]))
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<tr style="background:#bad6e3;"><td><a href="profiel.php?gebruikersnaam={$var[gebruikersnaam]}&f=1">{$var[gebruikersnaam]}</a></td><td><a href="admin_bewerk_nepprofiel.php?uid={$var[id]}">Bewerken</a></td></tr>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<tr style="background:#bad6e3;"><td><a href="admin_bewerk_nepprofiel.php?uid={$var[id]}">Bewerken</a></td></tr>"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</table>[/COLOR][COLOR= #007700];
}[/COLOR]
?> Aangezien ik nooit met tabellen werk is dit best een vervelend klusje.
Degene die zorgt dat alles goed onder elkaar komt te staan krijg 0.2 als hij de oplossing vóór 23:00 naar mij toe stuurt, of in dit topic zet!

Gr.
Jos
EDIT: Is al opgeloste, volgende is mij alleen niet duidelijk: Waarom gebruiken sommigen dit:
{$var[gebruikersnaam]}?


Nah, ik gebruik gewoon mijn eigen manier