hello friend koi mujhe bata skta ke php easy way se aur jaldi
kese seekh skte h...plz im waiting for ur answer..
Answers were Sorted based on User's Feedback
Answer / 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 |
What is the super method?
What is meant by pear in php? What is the purpose of it?
Whether php supports microsoft sql server?
What is difference between array_merge and array_combine in php?
What is the use of get and post method in php?
If anybody integrate "First Data Global Payment Gateway" in your site?
What is warning – “cannot modify header information – headers already sent”?
What is reference variable php?
How is session id stored in browser?
What are major variables in research?
Do you know what is the use of the function 'imagetypes()'?
Is it worth learning php in 2019?