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



hello friend koi mujhe bata skta ke php easy way se aur jaldi kese seekh skte h...plz im waiting f..

Answer / chirag

w3 school

Is This Answer Correct ?    8 Yes 1 No

hello friend koi mujhe bata skta ke php easy way se aur jaldi kese seekh skte h...plz im waiting f..

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

Post New Answer

More PHP Interview Questions

How to connect to mysql from a php script?

0 Answers  


What are the basic steps to store PHP session in to Database?

1 Answers   Rediff,


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.

2 Answers  


If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?

0 Answers  


What are the core OOP’s concepts?

2 Answers  






What are php filters?

0 Answers  


What is php? Why it is used?

0 Answers  


How to download and install php for windows?

0 Answers  


What are default session time and path?

0 Answers  


How to reset/destroy a cookie in php?

0 Answers  


Can I use php in html?

0 Answers  


What is oops php?

0 Answers  


Categories