Hi all,
I am trying to have a single page that when you vote for a picture, it sets the picture name (which is already unique) into a session, the page posts to itself and then only pictures that have not been viewed per the session are available 1 by 1. I tried using cookies, but it only held 15 pictures of data and then it kept overwriting the oldest result therefore only allowing me to have 15 or so pictures in rotation. There must be a way to do multiple cookies as well or just use sessions?
I have been able to set a session with the data I want in it, but then how do I call the entire session data into the page and only pull results from a MySQL query that are not in the session file?
When I use the following...
$f_choose = ("$f");
$SESSION["$f_choose"] = $f;
$f_cookie = $SESSION["$f_choose"];
and then...
$sql = "SELECT * FROM table where filename!='$f_cookie'";
and I print $f_cookie onto the page, it only pulls 1 result. I am guessing this is some array I need to do or not? Thanks for your help.
Catfish