R u getting output anything?

|
ecargsid_eht 2022-01-12 19:22:23
Gaurav Adhikari 2022-01-12 19:19:52
<?php
require(‘db.php’);
session_start();
// When form submitted, check and create user session.
if (isset($_POST[‘username’])) {
$username = stripslashes($_REQUEST[‘username’]); // removes backslashes
$username = mysqli_real_escape_string($con, $username);
$password = stripslashes($_REQUEST[‘password’]);
$password = mysqli_real_escape_string($con, $password);
// Check user is exist in the database
$query = “SELECT * FROM users WHERE username=’$username’
AND password='” . md5($password) . “‘”;
$result = mysqli_query($con, $query) or die(mysql_error());
$rows = mysqli_num_rows($result);
if ($rows>0) {
$_SESSION[‘username’] = $username;
// Redirect to user dashboard page
header(“location: dashboard.php”);
} else {
echo “<div class=’form’>
<h3>Incorrect Username/password.</h3><br/>
<p class=’link’>Click here to <a href=’login.php’>Login</a> again.</p>
</div>”;
}
}
?>

u have session_start() at two places.. login.php and in auth page.. check for it

2022-01-12 19:23:31
Use header(Location
2022-01-12 19:23:47
Echo $rows
2022-01-12 19:24:13
If $rows is printing result 0 then it’s query problem
Vashees 2022-01-12 19:24:15
echo “anything”;
die();
Vashees 2022-01-12 19:24:36
And login now
Vashees 2022-01-12 19:25:34
write inside if block
Shaylah Seana 2022-01-12 19:31:43
not sure i get your problem though
Vashees 2022-01-12 19:34:34
2022-01-12 19:24:13
If $rows is printing result 0 then it’s query problem

r u getting output anything?

Gaurav Adhikari 2022-01-12 19:37:18
thanks bhai log
Gaurav Adhikari 2022-01-12 19:37:31
solved
2022-01-12 19:37:47
Problem?
Vashees 2022-01-12 19:38:19
Issue kya tha?
Santosh Gautam 2022-01-12 19:38:24
Gaurav Adhikari 2022-01-12 19:37:18
thanks bhai log

Which error

ecargsid_eht 2022-01-12 19:41:37
Vashees 2022-01-12 19:38:19
Issue kya tha?

method aur isset function mein.. solve ho gya

ecargsid_eht 2022-01-12 19:44:43
thanks bro😊
mortalkabaap 2022-01-12 19:52:17
Helo any php pro here
Gaurav Adhikari 2022-01-12 19:56:47
ANY one have pushpa full movie hd then plz send me
Gaurav Adhikari 2022-01-12 19:57:03
if*
Santosh Gautam 2022-01-12 20:14:48
Bro
Santosh Gautam 2022-01-12 20:15:02
Downlode Pikashow
Santosh Gautam 2022-01-12 20:15:13
All movies are free this site
Go_odbye 2022-01-12 20:27:22
Gaurav Adhikari 2022-01-12 19:56:47
ANY one have pushpa full movie hd then plz send me

It’s release in hindi on 12 am (in 1hr )

Durai Raj 2022-01-12 20:35:06
Php LDAP
Durai Raj 2022-01-12 20:35:17
Know ?
kshamamishra 2022-01-12 21:34:10
Any one can help me in codeigniter
No One 2022-01-12 21:34:36
Sweetalert in if condition ?
No One 2022-01-12 21:34:46
How to do it ?
2022-01-13 12:02:18
Yes
dheeraj00002 2022-01-13 12:03:24
Do you know how to make popup in wp
2022-01-13 12:04:16
Sorry I don’t use wp
dheeraj00002 2022-01-13 12:04:27
In WordPress
2022-01-13 12:04:49
Sorry mistyped
dheeraj00002 2022-01-13 12:06:11
2022-01-13 12:04:49
Sorry mistyped

What

2022-01-13 12:41:44
I don’t use wp
|