PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have this put at the top of the admin pages to check whether or not there are cookies named "id","username", and "password". Then it is supposed to check those values against values in a DB. When there are no cookies and I try and access the page, I am blocked like how I should. However, I made a dummy cookie w/ values that weren't in the DB, it still allowed me to view the page.
and so forth...secondly make sure your cookies have the proper values.
I would also encrypt the data using [php_man]md5[/php_man] to proect the values. And lastly if your checking with num rows remove the count in the query