I hope that someone would be willing to help me out here - since I know it shouldn't be too hard.
I found and tutorial example of something that I wish to do. Unfortunately the sample code make use of the old MYSQLi and I have no idea how to go about to change it over to PDO.
Here is a link to the full tutorial
$connect = mysqli_connect("localhost", "root", "", "testing");
$query = "SELECT * FROM tbl_employee ORDER BY id desc";
$result = mysqli_query($connect, $query);
Then further down:
<div class="container" style="width:800px;">
<h2 align="center">PHP AJAX Jquery - Load Dynamic Content in Bootstrap Popover</h2>
<h3 align="center">Employee Data</h3>
<br /><br />
<div class="table-responsive">
<table class="table table-bordered">
<tr>
<th width="20%">ID</th>
<th width="80%">Name</th>
</tr>
<?php
while($row = mysqli_fetch_array($result))
{
?>
<tr>
<td><?php echo $row["id"]; ?></td>
<td><a href="#" class="hover" id="<?php echo $row["id"]; ?>"><?php echo $row["name"]; ?></a></td>
</tr>
<?php
}
?>
</table>
</div>
</div>