[Solved] Insert data in mysql colum with spaces with php


why dont you use the sql error ? so you can see what the msitake is .

try this

mysql_query("INSERT INTO bestellingen ($qw1) VALUES ($qw2)") or die(mysql_error());

use backticks around this also

    `ORDER DATE`

Note: this ` is not same as this ‘

try this

   $qw2 = $vnaam .','.$anaam .','.$straat.','. $code.','. $geboorte.','. $tel.', '.$email.', '.$dateandhour ;

3

solved Insert data in mysql colum with spaces with php