I'm new to ajax and would like to use it with php to create a table that a user can edit in the front end of the webapp.
this is what i have so far...
PHP
class genTable{
public function table1(){
global $data;
$result = $data->getData(); //from another class
echo '<table class="table">
<tbody>
<tr>
<td>Heading</td>
</tr>';
foreach($result as $res){
echo '<tr><td>' . $res['Name'] . '</td></tr>';
}
echo '</tbody></table>';
}
}
eventually i will just call that function to display it, is there a way to create a jquery function that uses ajax to add on three buttons update, edit and new that carry out their actions?