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
Do you know is it possible to extend the execution time of a php script?
Explain how to submit form without a submit button.
What is difference between echo and print_r in php?
What’s the special meaning of __sleep and __wakeup?
How do I start a php session?
Tell me what are the __construct() and __destruct() methods in a php class?
What is namespaces in PHP?
How do you define a constant?
Where to put php files in apache server?
What is singleton pattern in php?
Suppose your zend engine supports the mode Then how can you configure your php zend engine to support Mode ?
What is difference between get and post in php?
What is the difference between $message and $$message in php?
Explain why would we use === instead of ==?
Explain the syntax for ‘foreach’ loop with example.