Friends,
Firstly, sorry if my english is not good, its not my "home language".
I have problem with my multiple update script. Here is my code:
<?php
$riadok = $_POST['id'];
$files = $_POST['comment'];
$N = count($files);
for($i=0; $i < $N; $i++)
{
$editid = $riadok[$i];
$sql = "UPDATE
upload
SET
comment = '$files[$i]'
WHERE
id = '$editid'";
echo $editid;
echo $files[$i];
echo $N;
}
?>
I add the ECHO in bottom for check if the values are correct.
$N; gives me a correct number of required cycles
$files[$i]; gives me a correct value written down on TEXTAREA and POST from previous page.
$editid; gives me a correct ID from MySQL table row POST from previous page.
Anyway all ECHOs looks good for UPDATE, but script do not work. Im trying to fix it, but it looks like, Im on end of my possibilities. Ofcause I can gives you all 2 pages works before this one if necessary.
In another page I use similar cycle to this one but with SQL DELETE and its work. Can anybody help me?
Lots of thanks
RichieMTC