Hi everyone:
I´m new to php so most probably the answer to my question is more than obvious.Take a look at this code.The goal is to parse the values originated from a form array into a mysql INSERT INTO VALUES($some variable).
$num_fields=count($form_field);
$i=0;
while($i<$num_fields)
{
if($query_values ="")
{
$query_values=$form_field_submit[$i];
$query_do=$form_field[$i];
}
else
{
#$query_values=$form_field_submit[$i]. "," .$query_values;
$query_values=$query_values.",".$form_field_submit[$i];
$query_do=$query_do.$form_field[$i];
}
$i++;
}
-The problem aruses when trying to insert the data into the MYSQL database give a syntax error caused by the concatenation in:
$query_values=$query_values.",".$form_field_submit[$i];
Any help greatly apreciated.Thanks in advance.
Jorge