Hello all, I've been using Chrome to develop a database website for a school project and I've been having a couple of issues.
The first being refreshing. When I logout or login I have to refresh the page for it to pick it up. Or if sometimes I'm logged in but it thinks I'm logged in under a previous session until I refresh.
My second problem, which might not even be Chrome related but I don't think I've done it wrong... is SESSION variables. Well one session variable. So maybe it is wrong...
In my details.php I'm doing this to return the title of a book from a series of search results:
$title = $_GET['q'];
$_SESSION['title'] = $title;
and then over in requests.php I want to use that title so I do this:
$title = $_SESSION['title'];
But I keep getting an Unidentified value 'title' when I try to use $title in a query.
$requestCheck = mysql_query("SELECT holdsrequests.libraryID FROM holdsrequests, books WHERE books.title = '$title'") or die(mysql_error());