On Fri, 22 Feb 2008 09:43:06 +0100, Pseudonyme
<norman_cougloff@2cuk.co.ukwrote:
Quote:
Hi Rick,
Thank you for your answer,
>
function getVignoble ($filtres){
$sql="SELECT ps.status as status, ps.Cepageas Cepage from
Tbl_Raisin_Program_Status ps, Tbl_Creative_Information b where
b.Cepage= ps.Cepage and $filtres";
return select_query($sql);
>
}
And once again select_query() is a custom function of which I don't know
what kind of return it gives, do a var_dump() on the return of
getVignoble() (whithout any senseitive data offcourse, just the type of
data will suffice).
Also, how often does data change? People hate to log out and in the see
any change in it. If the query takes to long, you probably want to use
proper indexing in the database to speed it up before using just an extra
storage/cache. Run the queries with an explain, see if you can make them
more efficient, ask in a MySQL group if you don't know how.
Quote:
Cannot find how to store within the session the 'A' value under an as-
is function : $_SESSION[0]['status']
That $_SESSION[0]['status'] does not work.
Store them under a name rather then a number (see more of the session
manual):
$_SESSION['some_name_that_would_be_a_valid_variable_name']['status'] ='';
--
Rik Wasmus