Commit 9e9eca57 authored by Srinivas's avatar Srinivas
Browse files

Update stulogg.php

parent f1e28e97
Pipeline #37743 canceled with stage
<?php <?php
session_start(); session_start();
$connection = getdb();
if(isset($_SESSION['username2'])){ if(isset($_SESSION['username2'])){
$username2=$_SESSION['username2']; $username2=$_SESSION['username2'];
echo "<script>location.href='du.php?id=$username2'</script>"; echo "<script>location.href='du.php?id=$username2'</script>";
} }
else{ else{
$connection = mysqli_connect("localhost","root","");
$db = mysqli_select_db($connection,'test');
if(isset($_POST['search'])) if(isset($_POST['search']))
{ {
if (isset($_POST['user_id']) and isset($_POST['user_pass'])){ if (isset($_POST['user_id']) and isset($_POST['user_pass'])){
...@@ -190,4 +190,4 @@ a { ...@@ -190,4 +190,4 @@ a {
</table></center></body> </table></center></body>
</div> </div>
</div> </div>
</html> </html>
\ No newline at end of file
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