My IDE is expecting a semicolon but I'm not sure where! It is this line it is highlighting:
,'$other_writ' WHERE id="$_SESSION[user_id]")
This is the code above:
if (!empty($_POST['doLanguage']) && $_POST['doLanguage'] == 'Submit')
{
session_start();
foreach($_POST as $key => $value)
$id = "$_SESSION[user_id]";
if(empty($err)) {
for($i = 0; $i < count($_POST["other"]); $i++);
{
$native = mysql_real_escape_string($_POST['native'][$i]);
$other = mysql_real_escape_string($_POST['other'][$i]);
$other_list = mysql_real_escape_string($_POST['other_list'][$i]);
$other_read = mysql_real_escape_string($_POST['other_read'][$i]);
$other_spokint = mysql_real_escape_string($_POST['other_spokint'][$i]);
$other_spokprod = mysql_real_escape_string($_POST['other_spokprod'][$i]);
$other_writ = mysql_real_escape_string($_POST['other_writ'][$i]);
$sql_insert = "INSERT into `language`
(`native`,`other`,`other_list`,`other_read`, `other_spokint`
,`other_spokprod`,`other_writ` )
VALUES
('$native','$other','$other_list','$other_read','$other_spokint','$other_spokprod'
,'$other_writ' WHERE id="$_SESSION[user_id]")";
mysql_query($sql_insert,$link) or die("Insertion Failed:" . mysql_error());
}
Thanks for any help!