title: changing content in table according to dropdown selection
body: <p>I want to change to content in a table after user selecting value from dropdown list. there are two dropdowns - one to select user and second to select script. i want that when user chooses a user the table will show only rows with the chosen user and same for script.
  this is my dropdown:</p>
  
  <pre><code>     include_once "dbConnect.php";
      $query = "SELECT user_id FROM users";
      $result = mysql_query($query); ?&gt;
      &lt;select name="select1"&gt;
      &lt;?php while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { ?&gt;
      &lt;option value="&lt;?php echo $line['user_id'];?&gt;"&gt;
      &lt;?php echo $line['user_id'];?&gt;
      &lt;/option&gt;
      &lt;?php } ?&gt;
      &lt;/select&gt;
  
      &lt;?php
       include_once "dbConnect.php";
      $query = "SELECT script_name FROM scripts";
      $result = mysql_query($query); ?&gt;
      &lt;select name="select1"&gt;
      &lt;?php while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { ?&gt;
      &lt;option value="&lt;?php echo $line['script_name'];?&gt;"&gt;
      &lt;?php echo $line['script_name'];?&gt;
      &lt;/option&gt;
      &lt;?php } ?&gt;
      &lt;/select&gt;
  </code></pre>
  
  <p>thats the data in the table:</p>
  
  <pre><code>$json_response = array();
  
  $results= mysql_query("select user_id,script_name,cron_format from users,scripts");
  while ($row = mysql_fetch_array($results, MYSQL_ASSOC)) {
     array_push($json_response,$row);
  }
  echo json_encode($json_response);
  </code></pre>
  
  <p>and this is the table:</p>
  
  <pre><code>    &lt;table class="table table-bordered table-hover"&gt;
          &lt;thead&gt;
              &lt;td&gt;user name&lt;/td&gt;
              &lt;td&gt;script name&lt;/td&gt;
              &lt;td&gt;cron format&lt;/td&gt;
              &lt;td&gt;schedule last update&lt;/td&gt;
              &lt;td&gt;next execution time&lt;/td&gt;
              &lt;td&gt;script exec&lt;/td&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
              &lt;tr ng-repeat="x in data"&gt;
                  &lt;td&gt;{{x.user_id}}&lt;/td&gt;
                  &lt;td&gt;{{x.script_name}}&lt;/td&gt;
                  &lt;td&gt;&lt;span class="editme" contenteditable="true"&gt;{{x.cron_format}}&lt;/span&gt;&lt;/td&gt;
                  &lt;td&gt;{{x.schedule_last_update}}&lt;/td&gt;
                  &lt;td&gt;{{x.next_execution_time}}&lt;/td&gt;
                  &lt;td&gt;{{x.script_exec}}&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  </code></pre>
  
  <p>at the beginning table shows all users and for each user all scripts. 
  any solution is great but angularJs one will be great++...thanks</p>