ik heb nu dit:
maar hoe kan ik doen dat hij alle oude gegevens delete?
en als je denk waarom wil je dat weg
nou omdat altijd 0 bovenaan komt en 1 onderaan dus dan heefd het geen nut =D
<h2>onderhoud</h2>
<form name="form1" id="form1" method="post" action="wijzig_onderhoud.php">
<SELECT NAME="status">
<OPTION VALUE="0">website dicht</OPTION>
<OPTION VALUE="1">website open</OPTION>
</SELECT>
<br>
<INPUT TYPE="submit" NAME="submit" VALUE="update">
</FORM>
</center>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO `config` (status) VALUES ("[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]status[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]")"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/print"]print[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"<h1>Succesvol config gewijzigd</h1>"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"footer.php"[/COLOR][COLOR= #007700]);[/COLOR]
?> maar hoe kan ik doen dat hij alle oude gegevens delete?
en als je denk waarom wil je dat weg
nou omdat altijd 0 bovenaan komt en 1 onderaan dus dan heefd het geen nut =D

