Forum Replies Created
-
AuthorPosts
-
samiolelezi
Participantthe solution is below:
Copy DLLs to Apache bin
Go to your PHP folder, e.g., C:\xampp\php\
Copy these files:php_pdo_pgsql.dll
php_pgsql.dll
libpq.dllPaste them into:
C:\xampp\apache\bin
This is the trick that usually fixes Windows XAMPP PostgreSQL issues instantly.
Enable extensions in php.ini
Open C:\xampp\php\php.ini
Make sure these lines exist without semicolons:extension=pdo_pgsql
extension=pgsqlSave the file.
Restart Apache
In XAMPP Control Panel → Stop Apache → Start ApacheTest
Create test.php in your project folder:<?php
print_r(PDO::getAvailableDrivers());samiolelezi
Participantcomposer require –dev phpunit/phpunit:^9.5 –ignore-platform-reqs -W try this first
samiolelezi
Participantthe fix for this error is git pull –no-edit
This skips opening the editor and just uses the default merge message so no crashes this will try to merge your local and remote changes
samiolelezi
Participantto fix this error you need to go in index php and put this line in comments to get the code worked and have the output of users
samiolelezi
Participantthe error is in the user.class that im inserting
public function create($POST){
$errors = array();
$arr[‘username’] = ucwords(trim($POST[‘username’]));
$arr[’email’] = trim( $POST[’email’]);
$arr[‘password’] = $POST[‘password’];
$arr[‘gender’] = trim($POST[‘gender’]);
->$arr[‘date’] = date(“Y-m-d H:i:s”);
if you declared data instead of date will give you this kind of errror
it might say it has errors in db.class but you will check if the mistake is given in db.class or user.classsamiolelezi
Participantyou need to see the $values because all the problems is given there ive tried like this in the function run so the code executed without errors
$stm = self::$con->prepare($this->query); // Prepare the SQL query
// Use passed-in values or saved instance values
$use_values = !empty($values) ? $values : $this->values; -
AuthorPosts
