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 |
How to connect to mysql from a php script?
What are the basic steps to store PHP session in to Database?
I finished my degree 4 years back. I didnt get job in software. In the time(for 4 years) i worked one kpo industries. but now i got job in php(40 employes working there) as fresher(Salary 8000). Shall i join in php. I have no knowledge about php. Can i do well in php. How will my carrier if i join in php? Please can you give your idea.? It will be more usefull to me.
If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
What are the core OOP’s concepts?
What are php filters?
What is php? Why it is used?
How to download and install php for windows?
What are default session time and path?
How to reset/destroy a cookie in php?
Can I use php in html?
What is oops php?