Q:

I Can´t get INSERT to work

I have been banging my head to the wall with this: 

get the POST values to array..  
Select the foreign key..
Some other INSERT-operations

$insertdates = "INSERT INTO dates (asid,acq_date, serv_guaranteedate
               , maintenance_period, expiration_date) 
               VALUES ('$foreignkey','$uservalues[1]'
               ,'$uservalues[4]','$uservalues[5]','$uservalues[3]')";
$upsdasult= mysql_query($insertdates);

All the values are in the correct format before the insert and $foreignkey is in correct format. 
(I have echoed the values before the insert statement). 
The operation runs succesfully, but when I look at the database, nothing has been inserted.  
Could Somebody please tell me what I´m doing wrong? 

A:

You have to use curly braces to embed a array variable:
echo "This is an {$array['value']}";

