Resource id #2 ?

wxdqz

New Member
[login.php]

<?php include "layout.php"; ?>
<TD width="80%">
<FORM action="login2.php" method="post">
Username: <INPUT name="username" type="text" lenght="8">
Password: <INPUT name="password" type="password" lenght="8">
<BUTTON type="submit">Inloggen</BUTTON>
</TABLE>
</BODY>

-------

[login2.php]

<?php include "layout.php";
include "connect.php";
$currentuser = mysql_query("
SELECT * from userlogin where username = '$username' AND password = '$password'");
if($currentuser)
{
echo $currentuser; }
?>
</TABLE>
</BODY>

----

No matter what username/password is entered, the browser always displays 'Resource id #2'.

What does this mean? Is it some sort of MySQL errornumber?

Please help me out on this.

Mahkali
 
Back
Top