peter11 Posted August 11, 2010 Share Posted August 11, 2010 hi all, Is this line right? Im trying to say if the cookie has not been created create it and set as default value = 0 however i dont think this is right: $points = $_COOKIE["points"] ? $_COOKIE['points']:0; thanks, Quote Link to comment Share on other sites More sharing options...
trq Posted August 11, 2010 Share Posted August 11, 2010 $points = isset($_COOKIE["points"]) ? $_COOKIE['points']:0; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.