I've just started doing a bit of PHP coding and was wondering how to do a function that returns TRUE or FALSE when the username and password are checked against the database. If they are there I want to return as TRUE and if they aren't... FALSE. My tables called 'P_USER'.
So far I have this:
<?php
echo "<pre>";
print_r($_POST);
$username = $_POST["username"];
//echo $username;
$password = $_POST["password"];
//echo $username;
$query = mysql_query("SELECT * FROM P_USER");