I can't view the database content on a php page : <p>I can't view the database content on php page 
I want to fetch data using ID
thats the code :</p>

<pre><code>&lt;?php
//connect with database
$servername = "localhost";
$userdbname = "root";
$dbpassword = "";
$dbname = "users";
$usid = 0;
$docname = '';


$conn = new mysqli($servername, $userdbname, $dbpassword, $dbname);
// Check connection
if ($conn-&gt;connect_error) {
    die("Connection failed: " . $conn-&gt;connect_error);
}

$sql = "SELECT * FROM users WHERE id=".$usid;
if ($conn-&gt;query($sql) === TRUE) {
    $conn-&gt;close();
    $URLS = array();
    while ($row = $result-&gt;fetch_array()) {
        $docname= $row['docname'];
    }
    header("Location:Editeform.php");
}

?&gt;
</code></pre>

<p>This is the form I am trying to view the data in :</p>

<pre><code>&lt;div class="form-group"&gt;
  &lt;input type="text" class="form-input" name="docname" id="name" placeholder="Your Name" value="&lt;?php echo $users['docname']; ?&gt;" /&gt;
                    &lt;/div&gt;
</code></pre>
