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
How to specify argument default values?
How failures in execution are handled with include() and require() functions?
How to Pass JSON Data in a URL using CURL in PHP?
What is mysqli php?
Tell me how to find the position of the first occurrence of a substring in a string?
What is the use of mvc in php?
Tell me in php, objects are they passed by value or by reference?
Is php a mvc?
what is variable scope, which variables are accessible from where and what are "undefined variable" errors?
Why json is used in php?
How to fix "headers already sent" error in php
How do you check is php not empty?
Tell me how to get the value of current session id?
What is php written in?
What is the use of callback in php?