samiolelezi

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Database error #1430
    samiolelezi
    Participant

    the 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.dll

    Paste 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=pgsql

    Save the file.

    Restart Apache
    In XAMPP Control Panel → Stop Apache → Start Apache

    Test
    Create test.php in your project folder:

    <?php
    print_r(PDO::getAvailableDrivers());

    in reply to: Send_results Error #1426
    samiolelezi
    Participant

    composer require –dev phpunit/phpunit:^9.5 –ignore-platform-reqs -W try this first

    in reply to: Pull error in visual studio #1420
    samiolelezi
    Participant

    the 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

    in reply to: Bugs of OOP #1417
    samiolelezi
    Participant

    to 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

    in reply to: OOP Bugs #1415
    samiolelezi
    Participant

    the 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.class

    in reply to: Erroret ne OOP #1413
    samiolelezi
    Participant

    you 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;

     

Viewing 6 posts - 1 through 6 (of 6 total)