Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $email = $_POST['email'];
- $password = $_POST['password'];
- mysql_connect("******", "*****", "*****");
- $query = mysql_query("SELECT * FROM tcp_gr_project.tcp_users WHERE username='$email' AND password='$password'");
- @$result = mysql_num_rows($query);
- if (($email==NULL) || ($password==NULL))
- {
- echo "Not completed everything";
- }
- else
- {
- if ($result==0)
- {
- echo "There are no results";
- }
- else
- {
- echo "There are ".$result." results";
- while ($row = mysql_fetch_assoc($result)) {
- echo $row['username'];
- echo $row['password'];
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement