No data shown when using correct query

I got a small for each loop that I want to test. But it only shows me two empty list items. I also tested the SQL in phpmyadmin and it returns a correct table. I want to show the title from that table but like I said, I am getting two empty list items.
Does anybody know what I am doing wrong?
<?
    //  content
    $content= "SELECT * FROM `snm_content` WHERE catid = 13";
    $contentcon= $conn->query($content);
    $contentcr= array();
    while ($contentcr[] = $contentcon->fetch_array());

    foreach($contentcr as $content) 
    {
$contentje .= '<li>'.$contentcr['title'].'</li>';
    }
    echo $contentje;
?>

Replace $contentcr by $content inside the foreach loop.
<?
    //  content
    $content= "SELECT * FROM `snm_content` WHERE catid = 13";
    $contentcon= $conn->query($content);
    $contentcr= array();
    while ($contentcr[] = $contentcon->fetch_array());

    foreach($contentcr as $content) 
    {
$contentje .= '<li>'.$content['title'].'</li>'; // Here
    }
    echo $contentje;
?>