This is the part which searches and add the result to the 'pass' variable. At one stage I was getting a resource id number and found to get around that, but when I do this I get nothing on the pass variable
$result = mysql_query("SELECT `Pass` FROM `wiki` WHERE `User` ='" . $user ."'");
if ($result) {
$row = mysql_fetch_assoc($result);
$pass = $row['Pass'];
mysql_free_result($result);
}
mysql_close($con);
Can anyone help me please?
Thanks