I'm looking for help to understand an error given in a call to mysql_result (), that I can not resolve this error:
Warning: mysql_result () expects parameter 1 to be resource, object given in C: \ wamp \ www \
I do not know what parameter you are asking for.
This is the code:
<?php
$visitas_total = mysqli_query($conexao,"SELECT Sum(visitas) AS visitas FROM lp_post")
or die(mysql_error());
if(@mysqli_num_rows($visitas_total) <= '0') echo '';
$views = 0;
$visitas = mysql_result($visitas_total, $views, 'Visitas') ;
?>
Could anyone help me?