Warning: strpos(): Empty delimiter. in /home/joomlaha/public_html/components/com_smf/smf.php on line 14
Enable multiple sessions for Jom Comment
Home arrow Forum Enable multiple sessions for Jom Comment
  Welcome, Guest. Please login or register.
Did you miss your activation email?
May 11, 2008, 08:11:49 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  Enable multiple sessions for Jom Comment
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Enable multiple sessions for Jom Comment  (Read 144 times)
Ron Watson
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3


View Profile
Enable multiple sessions for Jom Comment
« 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
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal.
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use