Given the rule of thumb that cookie info should be sent before headers;
I have a query script that
require("connect.php");'s
for its connection information.
After the query is performed and the variables are declared with the returned values, I try to use one of those variables to set a cookie.
But, it keeps returning an error that the header info has already been sent by connect.php!
Now, if I incorporate the connection script directly into the query script, where the cookie is being set, it works just fine.
.....Why.....?