Right I have a session which is storing the number 5.
$_SESSION["UserRow"];
I also have a number sqeuence stored in a varible.
$noteSequence = 1234;
I'm running a query which finds the table row by the session valule and then sees if the $noteSequence matches with a row called note.
I'm currently running this query but it seems to be empty/not working...
$query = mysql_query("SELECT * FROM users WHERE id ='" . $_SESSION['UserRow'] . "' note='$noteSequence'", $connection);
$row = mysql_fetch_array($query);
$rows = mysql_num_rows($query);
if ($rows == 1) {
echo "Matched";
}
else{
('not matched');
}
Help is appreciated