Hi everyone here, I have a table that its content is what I have in DB (mine: easyPHP), here I wanted to edit the content of the table in browser & then by clicking the update button, I should get success to update the new information in my Data Base. in my <form> I've used POST method before for another purposes I had before, but now for UPDATE I need to use GET method. I'm actually new in PHP & PDO & everything. I think that I've tried myself to figure out how to write UPDATE query or how to use POST & GET method together, but when I run code , I get no Error! but also with no results. I get confused! I need your help.Thank you

here I show you my code (but not the full code, cause it's not necessary) :

this one is my form:
PHP Code:
        <form method="POST" action="index.php?get=variables">
            <table border="1 solid #000000">
                <tr>
                    <td>row</td>
                    <td>title</td>
                    <td>content of task</td>
                    <td>delete</td>
<!--                    <td>Edit</td>-->
                    <td>Update</td>
                </tr>
                <?php
                $MyTask 
"SELECT id,title, content_task FROM `task` " ;
                
$query=$conn->prepare ($MyTask);
                
$query->execute( );
                
$task_panel $query->fetchAll(PDO::FETCH_ASSOC);
                
// print_r($task_panel);
                // Array ( [title] => web [0] => web [content_task] => task [1] => task )
                // Array ( [title] => web [content_task] => task )

                //                print_r ($query->fetchAll(PDO::FETCH_ASSOC));
                //                print_r($query->errorInfo());
                
$n 0;
//                print_r($task_panel);
                
foreach($task_panel as $row)
                {
                    echo 
'<tr>
                                <td>'
.++$n .'</td>
                                <td><p contenteditable>'
.$row['title'].'</p></td>
                                <td><p contenteditable>'
.$row['content_task'].'</p></td>
                                <td><input name="checkbox[]" type="checkbox" value="'
.$row['id'].'"></td>
                               <!--<td><button name="edit[]" type="submit" value="'
.$row['id'].'">edit</td>-->
                                <td><button name="update[]" type="submit" value="'
.$row['id'].'">update</td>
                            </tr>'
;
                }
                
?>


            </table>
            <button type="submit" name="delete" value="delete">delete</button>
        </form>
& this one is what I've tried to write the UPDATE query:

PHP Code:
//if (isset($_GET['update']))
if($_SERVER['REQUEST_METHOD'] == 'GET')
{
    
$update $_GET['update'];

    
$up_id implode(','$update);
    
$upt "UPDATE  task SET `title` =:'title', `content_task`=:'content_task' WHERE id IN ($up_id)";
    
$upp $conn->prepare($upt);
    
$upp->execute($upt);