Home Blog Page 15

Change password using javascript, php and mysqli.

0
<?php
session_start();
if(!$_SESSION['name'])
{?>
<script type="text/javascript">window.location.href='index.php';</script>
<?php
}
?>
<?php
if(isset($_POST["changepsw"]))
{
$name = $_SESSION['name'];
$oldpsw= $_POST["oldpsw"];
$newpsw= $_POST["newpsw"];
$conpsw= $_POST["conpsw"];
require("connection.php");
$qry1 = "SELECT * FROM user where name='$name';";
$re = mysqli_query($con,$qry1);
$row = mysqli_fetch_array($re);
$dbpsw= $row['password'];

if($dbpsw==$oldpsw)
{

if($newpsw==$conpsw)
{

$qrys="UPDATE user SET password='$newpsw' WHERE name='$name';";
$results= mysqli_query($con,$qrys);
if($results==true)
{
session_destroy();
?>
<script>alert("Password Change Successfully");
window.location.href = "index.php";
</script>
<?php
}
else
{
?>
<script>alert("Password Not Changed");
window.location.href = "change-psw.php";
</script>
<?php
}
mysqli_close($con);
}
else
{
?>
<script>alert("Password Not Matched");
window.location.href = "change-psw.php";
</script>
<?php
}
}
else
{
?>
<script>alert("Old password is wrong");
window.location.href = "change-psw.php";
</script>
<?php
}
}
?>

Welcome back to shortlearner.com , today we will see how to change password using JavaScript, PHP and MySQL.
first of all we should discuss about overall scenario which we used to reset password.
In first step we make a form (which have three input fields) with the help of HTML, CSS and Bootstrap.

change password in php
In the second step we match the new password and confirm password with the help of JavaScript.
in case if new password and confirm password are not matched than we will disable the submit button with the help of JQuery.

How to create Splash screen in your Android app

0

Welcome back to shortlearner.com, in our previous post we learn the complete installation process of android studio.
today we learn what is splash activity and how to create it.
first of all we should know about what is splash activity, so basically splash screen is the user’s first experience of your application.

It normally used to display some kind of progress before the application setup completely.it is a simple constant screen for a fixed amount of
time which is used to display the company logo, name, advertising content etc.This tutorial will help you to learn How to create Splash screen in your Android app.

Android Studio Installation in Windows

0

Welcome back to shortlearner.com, today we will start our new tutorial series for those who are new to Android platform.
Today i will briefly introduce the android development platform, then show you how to download,install and run the software.

how to download,install and run android studio

About Android Studio

Before start the installation process, we take a look about android. so guys basically android studio is Google’s officially supported IDE for developing Android Apps.
The current version of android studio is 3.2.1, which was released in October 2018.

How to automatically  shutdown your system after certain duration of time ?

0

How to automatically  shutdown your system after certain duration of time ?

What happen sometimes you work on your computer and you know whatever the task you are doing (eg. downloading games) will take how much time and you have to do some other work  in that time or go outside or you may sleep so, in that case you can set the timer to automatically shutdown the system.

How to automatically  shutdown your system after certain duration of time ?
How to automatically shutdown your system after certain duration of time

Learn about Amazon Web Services.

0

What is Amazon Web Services (AWS).

 Amazon web services  provide complete set of cloud computing services access from the internet.

We can also build and run the applications. It provides storage and database services at lowest operational cost.We can leverage any of the AWS services on the demand.

Amazon Web Services tutorial