Update textbox value to database table using a condition in php
<p><a href="https://i.stack.imgur.com/EQ5d9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EQ5d9.png" alt="screenshot"></a></p>

<p>When I enter <code>0</code> in the <strong>update</strong> textbox and click on submit button the <code>Download_status</code> must change to <code>1</code> and vice versa. I am using SQL server 2008 and PHP.
The Text box value must be <strong>reflected</strong> in the database table <strong>Download_status</strong>.
Is this possible?</p>

<p>Output sample:</p>

<blockquote>
  <p>Branch_code   -> AM   ,   AM    ,  AM   </p>
  
  <p>Palmtec_id    ->AM06  ,  AM07  , AM08</p>
  
  <p>Download_status-> 0    ,   1  ,    1</p>
  
  <p>Query:</p>
  
  <p>select </p>
  
  <p>Branch_code,Palmtec_id,Download_status from tbl_download  where </p>
  
  <p>Branch_code='AM' and Palmtec_id='AM06' </p>
  
  <p>order by Branch_code,Palmtec_id</p>
</blockquote>