$connect = mysqli_connect("localhost", "root", "", "login") or die("Couldnt connect to Database");
$query = mysqli_query($connect, "SELECT * FROM users WHERE username='$username'");
my old precision t3600 that was my main rig till I got my current build
will post pics of the server soon but here's the drives: (Intel DC-S4500 960gb enterprise grade SATA SSD for boot drive + Ironwolf Pro 14TB)
and my main rig does a backup to this every wed w luckybackup rsync/rclone frontend. mounted locally n added to fstab on the main rig and this t3600 does a nice job as being the backup rig n everything's synced.
Wow you are right, I never even noticed this until you said it! (870E Aorus Master)
Before testing this card I had a TP-Link tx401 10GbE PCIe card in that slot (now using XikeStor 310 Thunderbolt to Ethernet adapter).
Recent Achievements
DrWankel earned a badge First Post
DrWankel earned a badge Reacting Well
Supreme Spray LV earned a badge Week One Done
Genuinetonerink- Dubai earned a badge One Month Later
Genuinetonerink- Dubai earned a badge Week One Done
Question
ImDifferent
<?php
session_start();
$username=$_POST['username'];
$password=$_POST['password'];
if($username&&$password)
{
$connect = mysqli_connect("localhost", "root", "", "login") or die("Couldnt connect to Database");
$query = mysqli_query($connect, "SELECT * FROM users WHERE username='$username'");
$numrows = mysqli_num_rows($query);
if($numrows!==0)
{
while($row = mysqli_fetch_assoc($query))
{
$dbusername = $row['username'];
$dbpassword = $row['password'];
}
if($username==$dbusername&&$password==$dbpassword)
{
echo "You are logged in!";
$_SESSION['username'] = $username;
}
else
echo "Your password is incorrect!";
}
else
die("That user dosnt exist!");
}
else
die("Please enter a username and password");
?>
How DO i get this to redirect after checking the database ?
Link to comment
https://www.neowin.net/forum/topic/1301270-redirect-after-form/Share on other sites
1 answer to this question
Recommended Posts