Author Topic: how can i use the same data base  (Read 2419 times)

0 Members and 1 Guest are viewing this topic.

Offline nameless

  • Full Member
  • ***
  • Posts: 147
    • View Profile
how can i use the same data base
« on: November 16, 2007, 12:49:05 PM »
HI i install the script 2 times so i have two script for 2 diffrant use
the problem is the member have to register in the 2 script
so are thier any way to make the member register in one scripe and the other screipt see him with out login

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: how can i use the same data base
« Reply #1 on: November 16, 2007, 04:23:33 PM »
Hi,

test this:
install in the same db  a second 4images, but with:
table_prefix = 4images_2_

Open in second 4images: includes/constants.php
search:
Code: [Select]
define('SESSIONS_TABLE', $table_prefix.'sessions');
define('SESSIONVARS_TABLE', $table_prefix.'sessionvars');
define('SETTINGS_TABLE', $table_prefix.'settings');
define('USERS_TABLE', $table_prefix.'users');
replace with:
Code: [Select]
define('SESSIONS_TABLE', '4images_sessions');
define('SESSIONVARS_TABLE', '4images_sessionvars');
define('SETTINGS_TABLE', $table_prefix.'settings');
define('USERS_TABLE', '4images_users');


Kurt