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
- Database connection modes: mysql
- Using a database table: lp_translate
- Search criteria: homepage
- Keywords: en-us
- Current Cookies globally "lang" variable value: en-us
- 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
- 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
- Read the quick guide -> https://lang-php.com/go/lp-docs-fives
- Upload all files in the "examples/05-database" directory to your website directory;
- No configuration file, the file lp-config.sample.php was renamed to lp-config.php.
- Open it lp-config.php Modify the Database_Mode value, select the type of database;
- 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.
- Browser access: http://< domain name or IP >;