A problem with logging in and file handling in a PHP login script
<p>Hello i have a problem when logging in and a resource #5 id error is returned.
1. When i login from localhost:80/ i login fine and there are no errors.
2. When i login from localhost/index.php for some reason it gives a resource id #5.</p>

<p>Why does this happen and how should i fix it?
The code is below:</p>

<pre><code>require("connectuser.php");
require("activeuser.php");
session_start();
$makesure = stripslashes($_POST['username']);
$makesure16 = stripslashes($_POST['password']);
$applications = mysql_real_escape_string($makesure);
$mytabletop = mysql_real_escape_string($makesure16);
$encryptpassword = md5($makesure16);
$sqlstatement = "SELECT * FROM user WHERE emailaddress = '$makesure' AND password =     '$encryptpassword'";
$whatever = mysql_query($sqlstatement) or die("Unable to Sign In");
$appstore = mysql_num_rows($whatever) or die($whatever);
</code></pre>

<p>What do i do to fix it though...</p>
