Skip to content

Instantly share code, notes, and snippets.

View Njonjo-kiroga's full-sized avatar

Njonjo Kiroga Njonjo-kiroga

View GitHub Profile
<?php
// A simple PHP script demonstrating how to connect to MySQL.
// Press the 'Run' button on the top to start the web server,
// then click the URL that is emitted to the Output tab of the console.
$servername = getenv('IP');
$username = getenv('C9_USER');
$password = "";
$database = "c9";
$dbport = 3306;