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

Explain me the difference between include and require?

674


Starting or restarting a computer is called

756


What is the difference between javascript and php?

693


What is cURL in PHP?

703


What is the importance of php?

674






What is $this in php?

702


Explain about PHP filter and why it should be used?

698


What is purpose of @ in Php?

810


Do csrf tokens expire?

659


Which is useful for method overloading?

789


i m a B.E,passed out few yrs bak failed to find good job due to less marks now thinkin of a career as PHP developer. is it a lucarative field and wat r career prospects; hv heard dat initial salary is very less bout 6k also most jobs r contrct jobs.pls guide me need ur valuable advice.pls hellppp!! thnx..

1828


How can we submit a form without using submit buttons?

697


Is facebook still written in php?

715


Does php has a future?

645


How to get the directory name out of a file path name?

678