Originally posted by Weedpacket
No, the result will always contain exactly one row; with one field (which is being looked at).
I can't see anything immediately wrong (except for ill-formed XHTML), so could I ask what it is doing?
Heh yea I know about the XHTML :p I need to fix that.
Here's what its doing though.
Its an authentication page, that simply is querying a database with stored usernames and passwords. My intent or what I'd like to do with it is such that when a user first visits the page that it displays normally and when/if they enter an invalid password rather then just refreshing the page so it shows a blank login again it throws an error of some sort (invalid password ect). I mentioned it earlier but I wrote the post rather hastily is that I've tried various permutations of sessions and I even tried cookies but neither worked, obviously not because they won't work but rather I'm implementing them wrong somehow, sadly I didn't save the examples of what I was doing 🙁
Here's the page itself in working form
http://www.techiekb.com/beta