Page 1 of 1

content won't display

Posted: Sat Feb 09, 2013 3:46 pm
by Porkypie
Hey!

I made this "while loop", but the content that comes after my loops won't display anymore.

Can anyone tell me why? here's the code:
	<?php

$result = mysql_query("SELECT `gebruikers_naam`, `achternaam`, `voornaam`, `email`, `telefoon` FROM gebruikers");
echo mysql_error();
	echo	"<table>
				<tr>
					<th style='display:none;'>id</th>
					<th>Gebruikersnaam</th>
					<th>voornaam</th>
					<th>achternaam</th>
					<th>E-mail</th>
					<th>telefoon</th>
					<th>wijzigen</th>
					<th>Verwijderen</th>
				</tr>";
					
			
			while ($row = mysql_fetch_array($result)){
			
	echo		"<tr>";
	echo			"<td style='display:none;'>" . $row['id'] . "</td>";		
	echo			"<td>" . $row['gebruikers_naam'] . "</td>";		
	echo			"<td>" . $row['voornaam'] . "</td>";		
	echo			"<td>" . $row['achternaam'] . "</td>";		
	echo			"<td>" . $row['email'] . "</td>";		
	echo			"<td>" . $row['telefoon'] . "</td>";	
	echo			"<td> wijzig </td>";		
	echo			"<td> <input type='button' name='verwijderen' value='verwijder' /> </td>";		
	echo		"</tr>";
			}
	echo	"</table>";
	
				die();
			?>		

Re: content won't display

Posted: Mon Feb 11, 2013 1:06 pm
by ExtremeGaming
Well anything after the loop is being cancelled by your call of die(); which ends the entire script.