This errors. I need to query to see who controls the entry in the database, but to override it if the logged in person is an ADMIN person.$result = mysql_query ("SELECT DISTINCT website FROM support WHERE dateactioned is NULL AND controller = '$cookiewebsite' OR $cookiewebsite = 'ADMIN' AND user = 'yes' ORDER BY website ASC");
I thought this script would say to select from the table where the Controller is "website name" OR the cookie's web site states "ADMIN".
Can you not query a cookie within a query like this?