Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in /Yi/domain/lang-php.com/www/example/05-database/libraries/classes/go.php on line 52

Notice: Undefined offset: 1 in /Yi/domain/lang-php.com/www/example/05-database/libraries/classes/go.php on line 53

Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in /Yi/domain/lang-php.com/www/example/05-database/libraries/classes/database.php on line 79

Notice: Undefined offset: 1 in /Yi/domain/lang-php.com/www/example/05-database/libraries/classes/database.php on line 80
05-database


05-database

DATABASE & ARRAY TYPE

Connected via PDO SQL database support for MySQL, SQLite. Using arrays (Array) feature lists all the available data.

CONFIGURATION INFORMATION

  1. Database connection modes: mysql
  2. Using a database table: lp_translate
  3. Search criteria: homepage
  4. Keywords: en-us
  5. Current Cookies globally "lang" variable value:
  6. Browser "HTTP_ACCEPT_LANGUAGE" is requesting:
    Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in /Yi/domain/lang-php.com/www/example/05-database/themes/homepage/index.php on line 65

    Notice: Undefined offset: 1 in /Yi/domain/lang-php.com/www/example/05-database/themes/homepage/index.php on line 65
  7. The currently loaded file is: 05-database/index.php

AVAILABLE LANGUAGES

  United States - English ( Mode 1 & Mode 2 )
  Россия - Русский ( режим 1 & режим 2 )
  简体中文 - 中国 ( 模式 1 & 模式 2 )
  繁體中文 - 中國 ( 模式 1 & 模式 2 )
  日本 - 日本語 ( モード 1 & モード 2 )
  대한민국 - 한국어 ( 모드 1 & 모드 2 )

HOW TO USE IT

  1. Read the quick guide -> https://lang-php.com/go/lp-docs-fives
  2. Upload all files in the "examples/05-database" directory to your website directory;
  3. No configuration file, the file lp-config.sample.php was renamed to lp-config.php.
  4. Open it lp-config.php Modify the Database_Mode value, select the type of database;
  5. MySQL
    1. Fill in the host address (DB_HOST), database name (DB_NAME), username (DB_USER), password (DB_PWD), prefix (db_prefix), encoding (DB_CHARSET);
    2. Open it lp-config.php modify "Database_Mode" values, select the type of database;
    SQLite
    Change Database_Mode value is "sqlite" by default using the database file: 05-database/database/SQLite.db.
  6. Browser access: http://< domain name or IP >;