This is probably like the most stupid question, but I can't figure it out, and I don't know why, but it's giving me an error saying that it was given a boolean. Here is my code.
if (mysql_num_rows(($result1) && $result) == 0) {
echo "<div class='alert alert-danger alert-dismissable'><button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button>No such user: <b>$u_name</b></div>";
exit();
}
EDIT:
I feel like the error is around in here somewhere, like is there a misplaced bracket or something like that:
if (mysql_num_rows(($result1) && $result) == 0)