hello friend koi mujhe bata skta ke php easy way se aur jaldi
kese seekh skte h...plz im waiting for ur answer..
Answer Posted / hello
admin dashbord==
<?php
session_start();
if(!$_SESSION['userid']==1)
header("location: login.php?logout=You are not logged in to view this page");
include("database.php");
$curpwd = $_POST['curpwd'];
$repwd = $_POST['repwd'];
if(isset($_POST['Submit']))
{
$sqlpwd = "SELECT Cnd_Password FROM profiles WHERE Cnd_Id=1 AND Cnd_Password = '$curpwd'";
//echo $sqlpwd;
$respwd = mysql_query($sqlpwd);
if($rowpwd = mysql_fetch_array($respwd))
{
$sqlupdate = "UPDATE profiles SET Cnd_Password ='$repwd' WHERE Cnd_Id=1";
//echo $sqlupdate;
mysql_query($sqlupdate);
$msg = "Password has been changed";
}
else
$msg = "Password You Entered is Wrong.Please try again.";
}
?>
<?php
$cntSql = "SELECT COUNT('HJ_Id') as hjbid FROM hot_jobs";
$cntResult = mysql_query($cntSql);
$row = mysql_fetch_array($cntResult);
$hjbid=$row['hjbid'];
?>
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Is wordpress a php framework?
Explain Creating and Naming an Array?
How to define a function with any number of arguments?
Write a program using while loop?
What does csrf token mean?
What kind of things have you done on the social side?
Is php still relevant 2019?
Explain what are psrs?
How can we encrypt the password using php?
What is meant by variable variables in php?
What is a substring in php?
How to submit form without a submit button.
Explain the different types of errors in php.
What is php and sql?
What is default session time and path in PHP. How to change it?