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 difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
List some features of php that are deprecated in php
How to find second highest salary
What is htaccess? Why do we use this and where?
Do you know what is the function func_num_args() used for?
How do you find the length of a string in php?
What is singleton design pattern in php?
How to get no of arguments passed to a PHP Function?
how we can use lamp.ie installatiion and basic workings.Is it similar to wamp in usage?
What is the difference between array_pop() and array_push()?
What are the rules to declare a php variables?
What is abstraction php?