Skip to content

Commit

Permalink
rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
shahfaisalgani committed Mar 26, 2024
1 parent dabe94f commit f3b6686
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 54 deletions.
8 changes: 4 additions & 4 deletions admin/includes/config.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
define('DB_SERVER','ecommercedb000.mysql.database.azure.com');
define('DB_USER',' "Faisalgani@ecommercedb000');
define('DB_PASS' ,'09@Atik786');
define('DB_SERVER','localhost');
define('DB_USER','root');
define('DB_PASS' ,'');
define('DB_NAME', 'onlinecourse');
$con = mysqli_connect(DB_SERVER,DB_USER,DB_PASS,DB_NAME);
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?>
?>
2 changes: 1 addition & 1 deletion admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
if(isset($_POST['submit']))
{
$username=$_POST['username'];
$password=md5($_POST['password']);
$password=c ($_POST['password']);
$query=mysqli_query($con,"SELECT * FROM admin WHERE username='$username' and password='$password'");
$num=mysqli_fetch_array($query);
if($num>0)
Expand Down
8 changes: 4 additions & 4 deletions includes/config.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
define('DB_SERVER','ecommercedb000.mysql.database.azure.com');
define('DB_USER',' "Faisalgani@ecommercedb000');
define('DB_PASS' ,'09@Atik786');
define('DB_SERVER','localhost');
define('DB_USER','root');
define('DB_PASS' ,'');
define('DB_NAME','onlinecourse');
$con = mysqli_connect(DB_SERVER,DB_USER,DB_PASS,DB_NAME);
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?>
?>
5 changes: 3 additions & 2 deletions includes/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#" style="color:#fff; font-size:24px;4px; line-height:24px; ">
EduEnroll

Online Course Registration
</a>

</div>
Expand All @@ -42,4 +43,4 @@
<i class="fa fa-user-plus login-icon" ></i>
</div>
</div>
</div>
</div>
43 changes: 0 additions & 43 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,54 +36,11 @@
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<link href="assets/css/style.css" rel="stylesheet" />
<style>
p{
color: aliceblue;
margin-top: 27rem;
font-size: 40px;
font-family: 'Times New Roman', Times, serif;

}
@media screen and (max-width: 600px) {
p{
margin-top: 19rem;
margin-left: 10rem;
font-size: 20px;
}
}
.fram{
min-width: 300px;
width: 150px;
min-height: 250px;
float:right;
margin-top: -100px;
margin-right: 50px;
}
@media screen and (max-width: 600px) {
.fram{
margin-top: 100px;
float:right;
margin-right: 6px;
}
}

</style>
</head>
<body>
<?php include('includes/header.php');?>

<section class="menu-section">
<div class="dec">
<br>
<img src="h.jfif" style="width:50px;height:50px;float:left;margin-left: 9px;border-radius:40px;margin-top: -13px;">
<h>WELCOME TO HOME BOOKING</h>

<p>
Do Booking Your Dream Home<br>
And Complete Your Dream
</p>
<iframe src='https://webchat.botframework.com/embed/homeapplangservice-bot?s=QTo3OW4B30Q.vXQpz9bd3j7p1OAQ06NvjoRRPaAmuPkRD1XT7AJQvtQ' class="fram"></iframe>
</div>
<div class="container">
<div class="row">
<div class="col-md-12">
Expand Down

0 comments on commit f3b6686

Please sign in to comment.