Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correcting errors in execution with postgresql #54

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

ribafs
Copy link

@ribafs ribafs commented Aug 24, 2019

To use Postgresql I change config.php add:
define('DB_PORT', '5432');// 3306 or 5432

And change application/Core/Model.php on end:
$dsn = DB_TYPE . ':host=' . DB_HOST . ';port ='. DB_PORT . ';dbname=' . DB_NAME;// . $databaseEncodingenc;
$this->db = new PDO($dsn , DB_USER, DB_PASS, $options);

so it worked cool

P.S.:
Very tanks for your good works.
I finally managed to create a PHP application with MVC using MINI3. :)

@ribafs
Copy link
Author

ribafs commented Aug 24, 2019

To works with PostgreSQL.

@ribafs ribafs changed the title Develop - Correcting errors in execution with postgresql Correcting errors in execution with postgresql Aug 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants