I have a simple if / else statement repeated in a second code block that should trigger and include an additional html code block but for some reason I havent been able to see it's not. I've been driving myself a little nuts trying to find the issue but for the life of me I can't. Excerpt below, thanks in advance :)
<?php
require_once("includes/conn.php");
$validateSQL="SELECT `email`,`token` FROM `users` WHERE `token`='".$_GET['token']."' AND `state`='1'";
$userData =$link->query($validateSQL) or trigger_error($link->error." [$validateSQL]");
$user=$userData->fetch_assoc();
$row_cnt = $userData->num_rows;
if ($row_cnt < 0){
$user=$userData->fetch_assoc();
};
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="css/login.css" />
<link href="css/Raku.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<title>Raku Māturanga : The Knowledge Tree</title>
</head>
<body style="">
<div class="background-plate">
<div id="heading-main">
<h1 class="">Raku Māturanga : The Knowledge Tree<br>
<small style="color:#ddddbb">Nau mai, welcome to where knowledge grows.</small></h1>
<p style="color: white; text-align: center">Making colobrative planning and evaluation eaiser than ever before.</p>
</div>
<?php
if ($row_cnt < 0){
include("includes/snippets/validate_setPassword.php");
}else{
}
?>
</div>
<div class="container-low">