Jump to content


Update from form to MySQL database

  • Please log in to reply
1 reply to this topic

#1 Skelethor

  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 10 April 2006 - 03:34 PM

Here is my code:




@mysql_select_db($database) or die( "Kan de databank niet selecteren!");

$query = "INSERT INTO login VALUES ('','$loginnaam','$paswoord','$voornaam','$naam',' $adres','$email')";

$query="SELECT * FROM login";



echo "<b><center>Overzicht leden</center></b><br><br>";

while ($i < $num) {


echo " Loginnaam: $loginnaam Paswoord: $paswoord Voornaam: $voornaam Naam: $naam Adres: $adres E-mail: $email";



And here is the code of my little form:

<form method="post" action"insert.php">

<table width="50%" border="0">
<td><input type="text" name="txtVoornaam"></td>
<td><input type="text" name="txtNaam"></td>
<td><input type="text" name="txtAdres"></td>
<td><input type="text" name="txtLoginnaam"></td>
<td><input type="text" name="txtPaswoord"></td>
<td><input type="text" name="txtEmail"></td>
<input type=submit name="cmdOpslaan" value="Verzenden">

I don't know what's wrong. But it just don't works...

Thx allready...

#2 wildteen88

  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 10 April 2006 - 03:40 PM

Its pretty helpful when you say it doesn't works! Do you get any errors while running the code? Whats parts dont work? Whats the script supposed to do?

Helps if you provide a few more details about your probelm rather than posting code and day it doesn't works!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users