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 php better than python?
What is Type hinting in PHP?
Explain what does the unlink() function means?
Why php is widely used?
How can I load data from a text file into a table?
What are the methods of array in java?
How break and continue while loop in php?
How do you find the length of a string in php?
What language is php based on?
How to track user logged out or not? When user is idle?
What is the difference between echo, print and printf()?
How do I see how many pages per session in google analytics?
Tell me how to create a text file in php?
What is the super method?
What is putenv?