my php code not executing correctly , i am echoing a category and it is echoing perfectly but when i am freeing my variable i am getting error saying mysqli_free_result() expects parameter 1 to be mysqli_result, null given ....
<li><a href="#" > <?php while($result3 = mysqli_fetch_array($row2)){
echo $result3['category'] ; } ?> </a></li>
<?php mysqli_free_result($result3) ; ?>
and aditionally none of my php code below this is exectuing , its just returning no data (page source is giving no data )
what mistake am i doing ?