This is my code:
$datum=$_POST['datum'];
$mesto=$_POST['mesto'];
$details should be something like this
$detalis = "Datum rodjenja:" . $datum . "; Mesto rodjenja".$mesto;
Then I need to do this:
$query="insert into table('1','2','3') values('$details','something1','something2')";
but it won’t work. It’s insert everything else,but won’t insert $detalis.
You have to use backticks “ instead of single quotes for column name. you are not allowed to enclose column names in quotes.
Escape the
$detailsvariable using mysql_real_escape_string.