Recently our sites sidebar disappeared after php upgrade on server. Following is the code. It is due to the mysql_fetch_array getting obsolete. I will be thankful if you could guide on how I can accomplish the same thing without getting onto mysqli
<h3 class="widget-title">LATEST NEWS</h3>
<?php
$Q = "SELECT * FROM 'wp_posts' WHERE 'post_type' = 'post' AND 'post_status' = 'publish' ORDER BY 'wp_posts'.'post_date' DESC LIMIT 0 , 5";
$QR = mysql_query($Q);
while($QRF = mysql_fetch_array($QR))
{
?>
<li>
<?php echo get_the_post_thumbnail($QRF['ID'], array(50,61)); ?>
<p>
<span><?php echo date("d/m/Y",strtotime($QRF['post_date']));?></span><br />
<a href="http://www.doonschool.com/<?php echo $QRF['post_name'];?>"><?php echo $QRF['post_title'];?></a>
</p>
</li>
<?php }?>