Some variables may be fine in double quotes, however in the case of accessing an array, it is too messy to look at, or maintain.
echo "something: " . $var['a'];
echo "something $var[a]";
echo "something {$var['a']}";
Generally you would want to go with the first if possible. Try to correct these small issues and see if it runs, if it does not try to tell us the lines where the error occurs so it is more obvious.
One further observation:
You should sanitise your POST variables, as they could contain quotes and break the SQL query, or even malicious SQL code. Please see the FAQ in this forum area for more information.
Alexander.
Be sure to read the updated
FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us
why or
what errors occurred.