title: How to get id of a certain row from DB through input?
body: <p>I use php to show as many inputs as many values are in table.</p>
  
  <pre><code>&lt;?php foreach($videos as $videos_item): ?&gt;
      &lt;div class="row video-input"&gt;
          &lt;input type="text" name="videos_inputs[]" 
             value="&lt;?php echo 'http://www.youtube.com/watch?v=' . $videos_item['video_url']; ?&gt;" 
             placeholder="Ссылка на видео" class="form__input"&gt;
          &lt;a href="&lt;?php echo BASE_URL;?&gt;/admin/delete_video.php?id=&lt;?php echo $videos['id']; ?&gt;" 
             class="form_video__delete"&gt;Удалить&lt;/a&gt;
      &lt;/div&gt;
  &lt;?php endforeach;?&gt;
  </code></pre>
  
  <p>But I also need to get ID of each row. </p>
  
  <pre><code>foreach ($videos_inputs as $val) {
      $value = $val;
  
      $add_videos = $db-&gt;prepare(
          'UPDATE videos SET 
              video_url = :video_url 
              WHERE id = :id'
      );
  
      $add_videos-&gt;execute([
          'video_url' =&gt; $value,
          'id' =&gt; $video_id
      ]);
  }
  </code></pre>
  
  <p>How can I do this?</p>