Hi searain,
Can't quite see exactly what the problem is with the first one, although I would guess that it's got something to do with embedding the variables in the string ... not a good idea in the first place IMHO :queasy:
Better to cut in and out of strings, like ...
<?php
$sql_update = "
UPDATE table1
SET field='".$field[$value[$index]]."'
WHERE value=".$value[$index]."
";
?>
... which won't have the problems of your first example, runs a tad faster, and is much easier to see what's going on and debug.
The only benefit to embedding I can see is that is fractionally faster to type.
Paul. 🙂