Search results

  1. B

    Message in connect to DB

    It's my php file. I made it. <?php $bd = new PDO("mysql:host=localhost; dbname=wiolxdeu_ramiro; charset-UTF8", "wiolxdeu_ramiro", "XXXXXX"); $bd -> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); ?> I removed the other comments. he problem line is: $bd = new...
  2. B

    Message in connect to DB

    I tested it on another provider, 000webhost, and it worked perfectly there. So thanks for the help. In the future I intend to come back and test again here, because I really liked X10hosting, but for now I'm going there. Thank you so much for everything.
  3. B

    Message in connect to DB

    My local machine version (it works) is PHP Version 8.2.0
  4. B

    Message in connect to DB

    I create the file phpinfo.php and here is the result:
  5. B

    Message in connect to DB

    No, I don't have a phpinfo.php file in the public_html directory. I'll try to enable "pdo_dblib" but doesn't work. I'll see the errors log.
  6. B

    Message in connect to DB

    It doesn't work. Same error. I don't know what is happening. In my local machine it works (with my local definitions).
  7. B

    Message in connect to DB

    In my local machine it works. I only define my local database. But i'll try it.
  8. B

    Message in connect to DB

    The line 11 is: $bd = new PDO("mysql:host=localhost; dbname=wiolxdeu_ramiro; charset-UTF8", "wiolxdeu_ramiro", "XXXXXXXXX"); XXXXXXX is my password
  9. B

    Message in connect to DB

    Yes, it's enabled and my version of PH is correct.
  10. B

    Message in connect to DB

    What is happening here, when a try to connect to my DB? Fatal error: Uncaught PDOException: could not find driver in /home/wiolxdeu/domains/prbcursos.x10.bz/public_html/Conexao.php:3 Stack trace: #0 /home/wiolxdeu/domains/prbcursos.x10.bz/public_html/Conexao.php(3): PDO->__construct() #1...
Top