Joomla Forum

Joomla Hacks => Joomla-SMF 2.0.x => Topic started by: Ron Watson on March 29, 2008, 01:18:24 AM



Title: Enable multiple sessions for Jom Comment
Post by: Ron Watson on March 29, 2008, 01:18:24 AM
Here's my problem:

Quote
   // First try to update an existing row...
   $result = db_query("
      UPDATE {$db_prefix}sessions
      SET data = '" . addslashes($data) . "', last_update = " . time() . "
      WHERE session_id = '" . addslashes($session_id) . "'
      LIMIT 1", __FILE__, __LINE__);

   // If that didn't work, try inserting a new one.
   if (db_affected_rows() == 0)
      $result = db_query("
         INSERT IGNORE INTO {$db_prefix}sessions
            (session_id, data, last_update)
         VALUES ('" . addslashes($session_id) . "', '" . addslashes($data) . "', " . time() . ")", __FILE__, __LINE__);

   return $result;
}

Jom Comment is having a problem with the red line.

Can this line be altered at all to allow multiple sessions.

Thanks.

cheers,
Ron


Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com