Fatal error: Call to a member function Execute() on a non-object in /home/.grable/damianw2002/allnonebbq.com/shopping_cart/includes/functions/sessions.php on line 61
Not sure what happened but when I went to log into admin area I got this message and it won't let me in. Any ideas??
function _sess_write($key, $val) {
global $db;
global $SESS_LIFE;
$expiry = time() + $SESS_LIFE;
$value = $val;
$qid = "select count(*) as total
from " . TABLE_SESSIONS . "
where sesskey = '" . zen_db_input($key) . "'";
$total = $db->Execute($qid);
if ($total->fields['total'] > 0) {
$sql = "update " . TABLE_SESSIONS . "
set expiry = '" . zen_db_input($expiry) . "', value = '" . zen_db_input($value) . "'
where sesskey = '" . zen_db_input($key) . "'";
return $db->Execute($sql);
} else {
heres lines 50 through 68
Bookmarks