title: PHP, MYSQL select row update
body: <p>I want to change the ID information of the selected image. I want to make the ID number more than the last ID available.</p>
  
  <p>in HTML;</p>
  
  <pre><code>&lt;form action="netting/operations.php" method="post"&gt;
  &lt;input type="hidden" value="&lt;?php echo $unilogo['uni_logo_id'] ?&gt;" name="uni_logo_id"&gt;
  &lt;button value="use" name="use_again"&gt;Use Again&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>in PHP;</p>
  
  <pre><code>&lt;?php
  if(isset($_POST['use_again'])){
      $unilogoid= $_POST['uni_logo_id'];
      $lastunilogoid = mysqli_query($conn,"SELECT uni_logo_id FROM uni_logo ORDER BY uni_logo_id DESC LIMIT 1");
      $unilogosql = "UPDATE uni_logo SET uni_logo_id='".$lastunilogoid."' WHERE uni_logo_id='".$unilogoid."'";
      $unilogosira=mysqli_query($conn,$unilogosql,MYSQLI_USE_RESULT);
  ?&gt;
  </code></pre>