0
       <?php 

           include 'db.php';

           $per_page = 6;
           $sql = "SELECT 'name' FROM 'names'";
           $result = mysqli_query($conn, $sql);
           while($rows = mysqli_fetch_assoc($result)) {
               echo '<p>'.$rows[name].'</p>';
           }

       ?>

I am simply making pagination and printing all the names from the databse but their is some kind of mysqli error,can anyone help to resolve this issue

  • 1
    That means your query failed, use mysqli_error to find out why. – Musa Jun 25 '16 at 16:03
  • 1
    And then, once you find out why with `mysqli_error`, then refer again to the duplicate question, because your answer is there. – Michael Gaskill Jun 26 '16 at 00:15
  • 1
    I am just wanted to improve my way of asking question because i am banned for asking question by the server –  Jun 26 '16 at 00:23

0 Answers0