watt Posted July 11, 2006 at 03:31 AM Report #37455 Posted July 11, 2006 at 03:31 AM <?php print "------------<br>"; $p=1+$_SESSION["cesta"]; $w=$_SESSION["cesta"]; print $w; $_SESSION["cesta"] =$p; ?> isto assim na devia de estar a fazer de contador ??
karva Posted July 11, 2006 at 09:03 AM Report #37459 Posted July 11, 2006 at 09:03 AM pa, tu ai nao comecas a session, e eu acho que isso nao pode ser feito dessa forma... Proud LEIC-A@IST student!
Ped@ntilva Posted July 11, 2006 at 12:00 PM Report #37490 Posted July 11, 2006 at 12:00 PM <?php print "------------<br>"; $p=1+$_SESSION["cesta"]; $w=$_SESSION["cesta"]; print $w; $_SESSION["cesta"] =$p; ?> isto assim na devia de estar a fazer de contador ?? Esse codigo pode ser reduzido, mas que valor contem o $_SESSION["cesta"]? <?php print "------------<br>"; print $_SESSION["cesta"]; $_SESSION["cesta"]++; ?>
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now