I would like to add a counter to show sequence of record inserted per query.

```
if(isset($_POST['keyword'])){
    $keyword = $_POST['keyword'];
    if($keyword){   
        foreach($keyword as $row){          
            $keyword_exe = $con->prepare("
                INSERT INTO t_theme(m_id,keyword,sequence_counter)VALUES('$id','$row', '???')
            ");
            $keyword_exe->execute();            
        }
    }
    }

```

I expect the output will be like this:

[![postgresql_table](https://i.stack.imgur.com/VvVxz.png)](https://i.stack.imgur.com/VvVxz.png)