Q:

PHP Form doesn't send data to database

I'm struggling for two days with this form issue.  The form does everything that it has to, except for putting the data in mysql database. 
I'm working in a Wordpress installation with Twitter Bootstrap. 
Here's the form page:
<form class="form-inline" role="form" action="../process.php" method="post">
      <div class="form-group">
        <label class="sr-only" for="email">E-Mail</label>
        <input type="email" name="email" class="form-control" id="email" placeholder="E-Mail">
      </div>
      <div class="form-group">
        <label class="sr-only" for="voornaam">Voornaam</label>
        <input type="text" name="voornaam" class="form-control" id="voornaam" placeholder="Voornaam">
      </div>
      <div class="form-group">
      <button type="submit" name="submit" class="btn btn-default">Schrijf me in!</button>
      </div>
    </form>

And here's the process.php:
<? php
//get the form elements and store them in variables
$voornaam=$_POST["voornaam"];
$email=$_POST["email"];

//establish connection
$con = mysql_connect("localhost","user","pasw","db"); //actual names in my code
//on connection failure, throw an error
if(!$con) {
    die('Could not connect: '.  mysql_error());
    }

$sql="INSERT INTO 'mailclients' ( 'email' , 'voornaam' ) 
VALUES ( '$email','$voornaam' )";
mysql_query($con,$sql);

//Redirects to the specified page
header("Location: /nieuwsbrief-bedankt/");
? >

I hope someone can help me out here!  Thanks in advance. 
Thomas

A:

correct your syntax
$sql="INSERT INTO mailclients (email,voornaam) 
VALUES ( '$email','$voornaam' )";

Normally i dont recommend W3school but the following link is good enough to remove your doubts:
http://www.w3schools.com/php/php_mysql_insert.asp

