Hi,
I think I'm probably overlooking something really simple here but anyway.
I have a database that acts as a bug tracker. When a fix for a bug is found, it's details are added to the database. This fix then has to be either accepted or rejected by the manager. If a bug has had a previous fix that has been rejected then in order to make sure I am updating the correct fix (i.e. the last one added) I need to search for the fix where the accepted field is empty. Sounds simple right?
I have the following query, but it doesn't work.
SELECT * FROM HWBugfixes WHERE probno='$bugno' AND accepted=''
I've also tried
SELECT * FROM HWBugfixes WHERE probno='$bugno' AND accepted=NULL
If I just run SELECT * FROM HWBugfixes WHERE probno='$bugno' I get all the records, no problem. Can anyone see what's wrong?
Thanks in advance, Jo