|
Posted by UKuser on 10/01/75 11:39
Using this code will show the results (the above won't I'm afraid), but
this displays an error:
for ($i=0; $i<count($_POST['id']); $i++)
{
////LINE 39////// next one
mysql_query ("UPDATE fig_lookup SET
lowerval='{'$_POST['f2'][$i]}',upperval='{'$_POST['f3'][$i]}',result='{'$_POST['f4'][$i]}'
WHERE id='{'$_POST['f1'][$i]}'");
}
}
while ($l = mysql_fetch_array($resulta, MYSQL_ASSOC))
{ ?>
<tr>
<td><input type="text" name="f1[]" value="<?=$l["id"]?>"></td>
<td><input type="text" name="f2[]" value="<?=$l["lowerval"]?>"></td>
<td><input type="text" name="f3[]" value="<?=$l["upperval"]?>"></td>
<td><input type="text" name="f4[]" value="<?=$l["result"]?>"></td></tr>
<?
}
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in /home/www/nana46.coconia.net/test4.php on line 39
(line 39 is mysql_query line - marked in code)
Navigation:
[Reply to this message]
|