Commit b58a4250 authored by Srinivas's avatar Srinivas
Browse files

Update Newneww.php

parent fcc7653d
<?php
session_start();
include('connection.php');
$connection = getdb();
?>
<html>
<head>
......@@ -166,8 +169,6 @@ if($_SESSION['username3']){
</form>
<table>
<?php
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection,'test');
$x=$_GET['id'];
$pieces = explode(" ", $x);
$x=$pieces[0];
......@@ -198,8 +199,6 @@ echo "<script>location.href='about5.php?id=$y'</script>";
<?php
$x=$_GET['id'];
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection,'test');
$query= "SELECT * FROM student where ID='$x' ";
$query_run = mysqli_query($connection,$query);
?>
......@@ -239,4 +238,4 @@ echo "<script>location.href='2.php'</script>";
}
?>
</body>
</html>
\ No newline at end of file
</html>
Markdown is supported
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