Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <HEAD>
- <LINK REL="stylesheet" TYPE="text/css" HREF="Makeup.css" />
- </HEAD>
- <?php
- mysql_connect("localhost","root","LOLNOPASSHERE");
- @mysql_select_db("novaproject") or die("<CENTER><H3>The database is down, are you?</H3><BR/><IMG SRC='images\disco_ball.gif'><BR/><H3>Don't be a square and get down right now!</H3></CENTER");
- if (isset($_POST["UName"]) && isset($_POST["PWord"]))
- {
- $Query = mysql_query("SELECT * FROM Gebruikers WHERE GebruikerID='".$_POST["UName"]."' AND Wachtwoord='".$_POST["PWord"]."'");
- if (!$Query)
- {
- die("Woa, something went wrong with the database, try again or contact a system admin with this error :<BR/>".mysql_error());
- }
- else
- {
- $Row = mysql_fetch_row($Query);
- $Username = $Row[0];
- $Password = $Row[1];
- if (!$Username || !$Password)
- {
- die("<P>Sorry bro, no such username/password</P>");
- }
- else
- {
- echo("Welcome 72014");
- }
- }
- }
- else
- {
- echo('<FORM METHOD="POST" ACTION="index.php" ALIGN="CENTER" >
- GebruikerID : <INPUT TYPE="TEXT" NAME="UName" /> <BR/>
- Wachtwoord : <INPUT TYPE="PASSWORD" NAME="PWord" /> <BR/>
- <INPUT TYPE="SUBMIT" VALUE="Login" />
- </FORM>');
- }
- //echo("<BR/><BR/>© Kevin Meijer & Jeffrey Hoekman");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement