JPO (stands for "Journée Portes Ouvertes" or "Open Day") is my study project in PHP with CodeIgniter (v3), carried out in May 2022. It is a mini-form system designed to collect feedback from visitors during a high school open day.
- Entry form with validation.
- Dynamic display of available training courses from the database.
- Visitor registration in the database, with "interested," "wish to apply," and comments.
- Display of visitor statistics (separate page).
- Prerequisites
- PHP (compatible version with CodeIgniter 2)
- Local Web Server (XAMPP, WAMP, MAMP…)
- MySQL or MariaDB
- Git (optional, if you want to clone the repo)
- Clone the repo (or download)
git clone https://github.com/Arlan64/jpo.git
cd jpo- Configure the database
Create a local database called
jpo.
Import thejpo.sqlfile into your database (with phpMyAdmin or MySQL CLI)
mysql -u root -p jpo < jpo.sql- Configure the database connection Open /application/config/database.php and modify the connection information (username, password, database) to match with your local configuration :
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'YOUR_DB_USERNAME',
'password' => 'YOUR_DB_PASSWORD',
'database' => 'jpo',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => TRUE,
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);-
Prepare your local server Install and launch a local server like XAMPP, WAMP or MAMP.
Place the project in the appropriate folder of the server (eg: for XAMPP :C:\xampp\htdocs\JPO). -
Configure the base URL Open the file
/application/config/config.phpand modify the following line to match your project's local URL:
$config['base_url'] = 'http://localhost/JPO/';- Launch the project In your browser, access to http://localhost/JPO/. The project should load normally.