adspace


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


Please Help Members By Posting Answers For Below Questions

sort term descripttion form, report and uery

2254


Which variable declarations within a class is invalid in php?

1046


What is the difference between htmlentities() and htmlspecialchars()?

1089


What is the current stable version of php?

1121


Tell me what kind of things have you done on the social side?

1063


How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain

1076


Write a program using while loop?

1115


What is trait in php?

1065


hello all, I need some sample placement papers in lion bridge.. can anyone help me?

2174


How to calculate the difference between two dates using php?

1142


What does $_files means?

1162


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer

1987


What is difference between static and final in php?

1107


What sized websites have you worked on in the past?

1084


Explain me is it possible to destroy a cookie?

1025