• 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.
    • 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.
 
Top