PHPMyAdmin Connection

Hello!

So I’m recently new to infinityfree and I don’t understand how to connect my php code to the MySQL database.

If you know how to do it please reply :slight_smile:

Thanks!

Knowledgebase to the rescue!

The PDO library (I recommend this one)

https://www.php.net/manual/en/book.pdo.php

4 Likes

Hey!
Thanks for the response, but I want to say that I already have a working code from my localhost, I just can’t find out on how to connect the MySQL, since I have never worked with MySQL on a host program!

Then just replace your localhost credentials with your production ones (From IF). You can find them in the client area.

Also, make sure to specify a database table name, it is required on free hosting.

6 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.