Beispiel #1
0
 public function testGetRow()
 {
     $rs = $this->db->GetRow("SELECT * From Country WHERE Continent = 'Europe'");
     $this->assertEquals(30, count($rs));
     $this->assertEquals('Europe', $rs[2]);
     $this->assertEquals('Europe', $rs['Continent']);
 }
Beispiel #2
0
* If you have SSL will get something like:
Array
(
 [Variable_name] => have_ssl
 [Value] => YES
)
* otherwise
*
Array
(
 [Variable_name] => have_ssl
 [Value] => DISABLED
)
*/
try {
    print_r($db->GetRow("show status like 'ssl_cipher'"));
} catch (\Exception $e) {
    print_r($e->getMessage());
}
/**
* IF SSL working you should see something similar to this:
Array
(
 [Variable_name] => Ssl_cipher
 [Value] => DHE-RSA-AES256-SHA
)
* otherwise
Array
(
 [Variable_name] => Ssl_cipher
 [Value] =>