Skip to main content

DEL BACK

<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        // put your code here
        include './conn.php';
        $qr="select * from new_reg";
        $recd= mysqli_query($Conn, $qr);
     
        ?>
     
         <center>
        <table cellpadding="6px" border="1px">
         
            <th>Student id</th>
            <th>Student Name</th>
            <th>Student city</th>
         
            <th>student contact</th>
            <th>Active/Deactive</th>
            <th>Delete</th>
            <th>Update</th>
         
         
     
     
        <?php
     
            while($res1=mysqli_fetch_assoc($recd))
            {
                echo "<center>";
             
                        echo "<tr><td>".$res1['id']."</td>
                        <td>".$res1['name']."</td>
                        <td>".$res1['city']."</td>
                        <td>".$res1['cnno']."</td>"
                         . "<td><a href=# name=link >A/D</a></td>"
                         . "<td><a href=delete.php?id=".$res1['id'].">Delete</td>"
                         . "<td><a href=# name=link2>Update</td>";
             
                echo "</center>";
             
            }
     
         
         
        ?>
        </table>
        </center>
    </body>
</html>
========================================================================
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        // put your code here
        include './conn.php';
        $id=$_REQUEST['id'];
        $qde1="delete from new_reg where id='$id';";
        //rdel=mysqli_query($Conn,$qdel);
        
        if(mysqli_query($Conn, $qde1))
        {
           echo "deleted";
           header("Location:view_1.php");
        }
        
        else {echo "00";}
        ?>
    </body>
</html>
=====================================================================
<?php
                                            for($k=1950;$k<=1997;$k++)
                                            {
                                                echo "<option>$k</option>";
                                            }
                                        ?>

Comments

Popular posts from this blog

DELL ES

<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html>     <head>         <meta charset="UTF-8">         <title></title>     </head>     <body>         <?php                     include './Conn.php';                     $sv="select * from demo";                     $qsv= mysqli_query($conn, $sv);                                 ?>     <center>         <table border="1">           ...

SRCH OP

<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <?php ob_start(); ?> <html>     <head>         <meta charset="UTF-8">         <title></title>         <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>   <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>     </head>     <style>       body{           background-color: aliceblue;       }   </style>     <body>     ...

IMAGE UP BACK

<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html>     <head>         <meta charset="UTF-8">         <title></title>         <style>             h1{                 font-family: monospace;                 color: black;                 text-align: center;             }             h3{                 text-align: left;             }         </style>     </head>     <body> ...