title: editable table cell using angularJS
body: <p>Is there a way to show data inside <code>td</code> and allow user to edit it in a way that the change will take place in the sql (MySQL in my case) table?
  im creating a table from database using angularJS:</p>
  
  <p>Creating The json file from the table:</p>
  
  <pre><code>$result = mysql_query("select * from `user script settings`");
  //Create an array
  $json_response = array();
  
  while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
      $row_array['user_id'] = $row['user id'];
      $row_array['script_id'] = $row['script id'];
      $row_array['cron_format'] = $row['cron format'];
      $row_array['schedule_last_update'] = $row['schedule last update'];
      $row_array['next_execution_time'] = $row['next execution time'];
      $row_array['script_exec'] = $row['script_exec'];
  
      //push the values in the array
      array_push($json_response,$row_array);
  }
  echo json_encode($json_response); 
  </code></pre>
  
  <p>showing it in 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_id}}&lt;/td&gt;
              &lt;td&gt;{{x.cron_format}}&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;
  &lt;script&gt;
      function customersController($scope,$http) {
          $http.get("getData.php")//test3.php return a json file of users table
                  .success(function(response) {$scope.data = response;});
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>I want to allow user to change the cron format value and to update the table ...is there "angularish" way to due that?? if not i'll appreciate guidance for a php solution, thx! </p>