Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\

Ian LikonoIan Likono Member Posts: 1
in PHP

i get this error when calling my index page.
index.php
<?php error_reporting(-1); include("header.php"); include("mysqli.php"); $result = mysqli_query($con,"SELECT * FROM profile ORDER BY RAND() "); if(isset($_SESSION["logid"])) { header("Location: profile.php"); } $i=0; if ($row = mysqli_fetch_array($result)) { $img[$i] = $row["image"]; $uid[$i] = $row["userid"]; $i++; } else{ mysqli_connect_error(); } ?>

Comments

Sign In or Register to comment.