title: Disable button on conditions
body: <p>I have a buttons which are displayed from sql query:</p>
  
  <pre><code>     $username = new User();
      $name = $username-&gt;data()-&gt;username;
      $sql1 = DB::getInstance()-&gt;query("SELECT names FROM list WHERE username = '$name'");
     if (!$sql1-&gt;count()) {
          echo 'No data';
      } else {
          foreach ($sql1-&gt;results() as $sql1) {
              ?&gt;
  
                                      &lt;p&gt;&lt;button class="" &gt; &lt;?php echo $sql1-&gt;names; ?&gt;&lt;/button&gt;&lt;/p&gt;
                                      &lt;?php                            
                               }
                            }
  </code></pre>
  
  <p>This displays two buttons which match the conditions from the query, so I'm trying to disable one of the displayed buttons if it doesn't match another condition.
  For example, there are two buttons, John and Poodle. And a query to match if one of the buttons is an animal.</p>
  
  <p>So if the button john does not match the query, it should be disabled.</p>