please help me to display message if only entered password is wrong, when entered username is wrong it shows "wrong username"
,i want to do the same for password
when it is wrong, it has to display "wrong password"
. here is
my code :
if ( $pass===$dbpass && $id===$dbid ) {
$show=mysql_query("SELECT `name` FROM `attestation` WHERE id='$id'");
while ( $row=mysql_fetch_array($show)) {
echo '<center><span style="font-size:50px;font-family: HelveticaNeueLTW20;padding-top:50px;line-height:0.5em;color:red;text-shadow: 2px 2px 4px #000000;">'.$row['name'].'</span></center>';
echo '<center><span style="font-size:20px;font-family: HelveticaNeueLTW20;color:white;line-height:2.5em;">'.'- المعهد يتمنى لكم مسيرة موفقة -'.'</span></center>';
}
$res=mysql_query("SELECT `images` FROM `attestation` WHERE id='$id'");
echo "<table>";
while ($row=mysql_fetch_array($res)) {
echo "<tr>";
echo "<td>";?><img src="<?php echo $row ["images"]; ?>" <?php " </td>";
echo "</tr>";
}
$_SESSION['id']=$id;
}
else
echo ('<span style="font-size:40px;color:red;font-family:f45;text- shadow: 2px 2px 4px white;">' . '<center dir="rtl" lang="ar">عذراً<br> لقد أَدخلت رقم هويتك خاطئاً...<br>المرجو المحاولة مجددا</center>' . '</span>');
}
if ( $pass!=$dbpass) {
echo "grzegrzgzrg";
}
else
die('<span style="color:red;font-size:40px;font-family:f45;text- shadow: 2px 2px 4px white;">' . '<center dir="rtl" lang="ar">عذراً<br> المعلومات المدرجة ليست مسجلة في قاعدة بيانات المعهد!!</center>' . '</span>');
}