Hi I already asked this question but unfortunately I didn't get appropriate answer for that. I have two tables in MySQL database called Items and Item as bellow:

I have two .php files as bwlow; the index.php and results.php the index.php is like:
<html>
<head></head>
<body>
<?php
$mysqli = new mysqli('localhost', 'root', '', 'moviedb');
if ($mysqli->connect_errno)
{
die('Unable to connect!');
}
else{
$query = 'SELECT * FROM tblItems';
if ($result = $mysqli->query($query)) {
if ($result->num_rows > 0) {
?>
<p> Select a Genre
<ul>
<?php
while($row = $result->fetch_assoc()){
?>
<li><div class="selectGenre"><?php echo $row['item']; ?></div></li>
<?php
}
?>
</ul>
</p>
<p id="result"></p>
<?php
}
else
{
echo 'No records found!';
}
$result->close();
}
else
{
echo 'Error in query: $query. '.$mysqli->error;
}
}
$mysqli->close();
?>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function()
{
$('.selectGenre').click(function()
{
if($(this).html() == '') return;
$.get(
'results.php',
{ id : $(this).html() },
function(data)
{
$('#result').html(data);
}
);
});
});
</script>
</body>
</html>
and the results.php is:
<?php
$mysqli = new mysqli('localhost', 'root', '', 'moviedb');
$resultStr = '';
$query = 'SELECT type FROM tblItem where id='.$_GET['id'];
if ($result = $mysqli->query($query))
{
if ($result->num_rows > 0)
{
$resultStr.='<ul>';
while($row = $result->fetch_assoc())
{
$resultStr.= '<li><strong>'.$row['id'].'</strong> - '.$row['type'];
'</li>';
}
$resultStr.= '</ul>';
}
else
{
$resultStr = 'Nothing found';
}
}
echo $resultStr;
?>
well, the first part(index.php) is populating the list base on the tblItems table but clicking on the list not returning any values to the page from the results.php file, not even an error message. Can you please let me know what I am doing wrong here?