cant get data from my DBtable..plz help,,

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ravi6070
    New Member
    • Dec 2022
    • 1

    #1

    cant get data from my DBtable..plz help,,

    i get error msg like this....
    Parse error: syntax error, unexpected end of file in C:\xamppp\htdoc s\crud\display. php on line 54

    my code is
    <?php
    include 'connect.php'; ?>



    <!DOCTYPE html>
    <html lang="en">

    <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edg e">
    <meta name="viewport" content="width= device-width, initial-scale=1.0">
    <title>Crud operation</title>
    <link rel="stylesheet " href="https://cdn.jsdelivr.ne t/npm/bootstrap@5.2.3/dist/css/bootstrap.min.c ss">

    </head>

    <body>
    <div class="containe r">
    <button class="btn btn-primary my-5"> <a href="user.php" class="text-light">Add user</a></button>
    <table class="table">
    <thead>
    <tr>
    <th scope="col">Sl no</th>
    <th scope="col">Nam e</th>
    <th scope="col">Ema il</th>
    <th scope="col">Mob ile</th>
    <th scope="col">Pas sword</th>
    <th scope="col">Ope rations</th>
    </tr>
    </thead>
    <tbody>
    <?php
    //select query
    $sql = "select * from 'crud'";
    $result = mysqli_query($c on, $sql);
    if($result){
    $row = mysqli_fetch_as soc($result);
    echo $row['name'];
    $row = mysqli_fetch_as soc($result);
    echo $row['name'];
    }
    ?>




    </tbody>
    </table>

    </div>

    </body>

    </html>
    Last edited by ravi6070; Dec 12 '22, 05:00 AM. Reason: missed one bracked while copy
Working...