Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $query = mysql_query ("SELECT * FROM users WHERE username='$username'");
- $numrows = mysql_num_rows($query);
- if ($nuwrows=0)
- {
- while ($row = mysql_fetch_assoc ($query))
- {
- $dbusername = $row ['username'];
- $dbpassword = $row ['password'];
- }
- }
- if ($username==$dbusername&&$password==$dbpassword)
- {
- echo "<a href=\"index1.php\">Inlogen</a>";
- }
- else
- {
- echo "er is iets fout";
- }
- ?>
Add Comment
Please, Sign In to add comment