Sub_Seven - 6:30 pm on Aug 3, 2010 (gmt 0)
I have resolved the issue, well, not me technically but the script is now working fine.
There are some very bright people here at work and I looked for help here as a last resource...
This is what made it:
if($result['previous_employee'] == 1)
echo "<p>This is a test.</p>";
The explanation was that I was already accessing the db here
$SqlQuery = "SELECT * FROM `applications`
And that it was not necessary to access it again from that query...
Oh well! I appreciate all the help provided, and I am pretty sure I will have more questions as I keep learning this evil code, I'll see you soon, thanks.