Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

PHP Connecting MySQL to PHP using MySQLi

moff145

New Coder
Hello. I am on Windows using the latest version of PHP and MySQL. I run PHP through a localhost in the command prompt. I type in -S localhost:4000 to create a server and then run PHP on localhost:4000. I also have MySQL tables and databases in the MySQL command line client. I am trying to link my database and table in MySQL to my PHP using MySQLi. I believe that the MySQLi extension is disabled as it is not recognizing the MySQLi function in PHP. I have tried to uncomment the extension in Notepad by removing the semicolon but it does not work. Does anyone know how to activate the MySQLi extension given my current situation. I am also willing to use PDO if that is easier to activate. Thank you.
 

Buy us a coffee!

Back
Top Bottom