Cloud 9 IDE can't connect to database
问题 I have tried a number of things to connect to my database in cloud 9 but I keep getting similar errors. This is my PHP code: <?php // Create connection $con=mysqli_connect($IP, "$C9_USER", "", "c9"); //(host,username,password,dbname)<- guide for me // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } ?> I took the basic code from w3schools and I used it with a document explaining how cloud 9's mysql database works: https://docs.c9