Commit 08ad34fa authored by Srinivas's avatar Srinivas
Browse files

Update nouse2.php

parent 663e77f1
<?php <?php
session_start(); session_start();
include('connection.php');
$connection = getdb();
?> ?>
<html> <html>
<head> <head>
...@@ -162,8 +164,6 @@ if($_SESSION['username']){ ...@@ -162,8 +164,6 @@ if($_SESSION['username']){
</form> </form>
<table> <table>
<?php <?php
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection,'test');
$x=$_GET['id']; $x=$_GET['id'];
date_default_timezone_set('Asia/Kolkata'); date_default_timezone_set('Asia/Kolkata');
$date = date('y-m-d H:i:s'); $date = date('y-m-d H:i:s');
...@@ -183,8 +183,6 @@ header("Location:nouse.php"); ...@@ -183,8 +183,6 @@ header("Location:nouse.php");
</form><br><br> </form><br><br>
<?php <?php
$x=$_GET['id']; $x=$_GET['id'];
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection,'test');
$query= "SELECT * FROM student where ID='$x' "; $query= "SELECT * FROM student where ID='$x' ";
$query_run = mysqli_query($connection,$query); $query_run = mysqli_query($connection,$query);
?> ?>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment