Commit a6bd0f24 authored by Srinivas's avatar Srinivas
Browse files

Update stu1.php

parent e1382ddf
<?php <?php
session_start(); session_start();
include('connection.php');
$connection = getdb();
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en-ca"> <html lang="en-ca">
...@@ -133,8 +136,6 @@ tr:nth-child(even) {background-color: #f2f2f2} ...@@ -133,8 +136,6 @@ tr:nth-child(even) {background-color: #f2f2f2}
if($_SESSION['username4']){ if($_SESSION['username4']){
?> ?>
<?php <?php
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection,'test');
$query= "SELECT * FROM registrations"; $query= "SELECT * FROM registrations";
$query_run = mysqli_query($connection,$query); $query_run = mysqli_query($connection,$query);
?> <h2> <center> Students Record </center> </h2> ?> <h2> <center> Students Record </center> </h2>
...@@ -199,4 +200,4 @@ echo "<script>location.href='3.php'</script>"; ...@@ -199,4 +200,4 @@ echo "<script>location.href='3.php'</script>";
?> ?>
</body> </body>
</html> </html>
\ No newline at end of file
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