hi,
i want to make a backoffice system, can someone tell me how i can update my mysql database true a php script?
grtz
whats wrong with this script?
i want to make a backoffice system, can someone tell me how i can update my mysql database true a php script?
grtz
| Code: |
| <?php
if ($submit) { // process form $db = mysql_connect("localhost", "username", "psword"); mysql_select_db("dbname",$db); $sql = "UPDATE vragenlijst SET voornaam = '$voornaam'"; $result = mysql_query($sql); echo "Bedankt voor de gegevens in te vullen, klik op index om terug naar de hoofdpagina te gaan.\n"; } else{ // display form ?> <table> <tr> <form method="post" action="<?php $_POST['voornaam']"?> <td class="style1">Voornaam:</td><td><input type="Text" name="voornaam"><br></td></tr> </table> <input type="Submit" name="submit" value="Verzend"> </form> <?php } // end if ?> |
whats wrong with this script?
