Level 104
Could be that you're editing the wrong php.ini; do you see pdo_mysql in the output of
php -m
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
When connecting to the database normally it gets connected and when trying with the same code with locally running the server from
php -S localhost:8000 -t public my public dir have index.php where i have written the same code .
Noramlly running with the xampp server it executed and i have the php 8.3.20 in my c/programs files/php and chnaged the php-development copied and make it php.ini and edited the ;extension=mysql removed ; .
I get the following error..
Fatal error: Uncaught PDOException: could not find driver in C:\Users\salun\OneDrive\Desktop\voting-2025\voting
Please or to participate in this conversation.