Ah blimey, I must've hit the hyphen by mistake at some point!
Anyway, that has been misleading as this hasn't fixed my original issue which is the email verification is changing from 1 to 0 even if the email address hasn't been updated. The line in question is on or around 189 which is the second update behaviour, not the first one. Basically, the second update behaviour is looking for the trigger 'send' rather than looking for a change solely to the email address, and as a result it is updating the record to a 0 regardless of any change. I can't where where send is created though!
This is the original trigger:
if ((isset($_GET['send']) && $_GET['send'] != "")) // Trigger
This is what I have changed it to to try to get it to compare the contents of the text box to that of the data passed from the DB, and only if there's a difference should it instigate an update:
if ((isset($_GET['send']) && $_GET['send'] != "" && $row_SecurityAssisttblusers["UserEmail"] != ($_POST["User_Update_group_Email"]))) // Trigger
I've also tried populating a variable like so:
$DBemail = $row_SecurityAssisttblusers['UserEmail'];
if ((isset($_GET['send']) && $_GET['send'] != "" && $_POST["User_Update_group_Email"] != '".$DBemail."')) // Trigger
Nothing is working though. Is this possible?