cannot connect database
While it may possible to connect using mysqli->connect it is always better to make use of built in WordPress functionality (even for external code). By this I mean that you should use the wpdb class. See https://codex.wordpress.org/Class_Reference/wpdb for more information. First you need to link to the WordPress class: echo ‘<h1>WP Connect DB</h1>’; echo ‘<p>Directory … Read more