Welcome Guest, Not a member yet? Register   Sign In
session header error!!!
#5

[eluser]bang_dayat[/eluser]
[quote author="JanDoToDo" date="1268528416"]Its called a ternary operator. Its a shorthand IF statement. it tests the first condition, i.e. isset($_SESSION['cart']) and then if that returns true it assigns $cart a value of $_SESSION['cart'] else it assigns it as an empty array fo you to work with Smile[/quote]
yeaa,,I got it,..you and wikipedia really help me bout that "ternary operator"...

my last question is,,I call the ci session
Quote:$this->session->set_flashdata('conf msg',"anda telah menambah produk ini ke keranjang belanja");
then in the view I call that session look like this:
Quote:<?php
if($this->session->flashdata('conf_msg')){
echo "<div class='message'>";
echo $this->session->flashdata('conf_msg');
echo "</div>";
}
?&gt;
but that message not appear in the browser,..perhaps you can help bout that,..
really Thanx,..


Messages In This Thread
session header error!!! - by El Forum - 03-13-2010, 11:54 AM
session header error!!! - by El Forum - 03-13-2010, 12:19 PM
session header error!!! - by El Forum - 03-13-2010, 12:53 PM
session header error!!! - by El Forum - 03-13-2010, 01:00 PM
session header error!!! - by El Forum - 03-13-2010, 01:23 PM
session header error!!! - by El Forum - 03-13-2010, 02:08 PM
session header error!!! - by El Forum - 03-13-2010, 02:41 PM
session header error!!! - by El Forum - 03-13-2010, 02:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB