what to replace mysql_result
with?
im watching a tutorial now but it was made in 2011 so it is not working now. Here is the situation, I will be very grateful if you tell me what to replace mysql_result with here, and what to put in the parenthesis
function update_count() {
global $link;
$query = "SELECT `count`, FROM `hits_count`";
if($query_run = mysqli_query($link, $query)) {
$count = mysql_result($query_run, 0, 'count');
$count_inc = $count + 1;
echo $count;
}
}
update_count();