Menu
Hello, I’m getting an error message saying it doesn’t like the first bracket {
can anyone see why? This is just supposed to show “text 1” on one page load and then “text 2” on the next, then repeat.
[code=php]<?php
setcookie(“a”, $this, time()+60*60*24*180);
$this = “text 1”;
$that = “text 2”;
if(isset($_COOKIE[‘a’]){setcookie(“b”, $that, time()+60*60*24*180);}
echo $this;
else if(isset($_COOKIE[“b”]){setcookie(“a”, $this, time()+60*60*24*180);}
echo $that;
?>