I took brians code and removed all the typing errors, used WDZ's new $code decleration and it is still returning a blank page.
I don't think my query is returning anything
EDIT: I ran it from another script and it returned the rows.
When i run the first script it does not delete the row so i think my if statement is wrong?
EDIT 2: I got it to work by modifying the if statement to be: rows > 0
EDIT 3: tThanks WDZ and brian!
EDIT 4: actually, to anyone wondering, it was seeing code as set and not preforming the else