in my php I echoed
//sql query here
foreach($user as $values){
echo $values['id'];
echo $values['name'];
echo $values['email'];
echo $values['loc'];
}
in my $.post
success:function(msg){
//what to put here to be able to retrieve the values?
}
and in my html
<td id="idField"></td><td id="nameField"></td><td id="emailField"></td><td id="locField"></td>
How should be done in a right way? The output should display the specified columns from a table and should display a numbers of rows depends from the query result.