PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php use Carbon\Carbon; $now = Carbon::now()->format('d/m/Y'); printf("Today is %s\nCurrent PHP version: %s \n\n", $now, phpversion()); $query = "SELECT VERSION() as version;"; // Run query using mysqli $mysqli->close(); try { echo $mysqli->real_escape_string("hello") . "\n"; } catch (Exception $e) { echo get_class($e); } $result = $mysqli->query($query); // $version = $result->fetch_object(); // printf('DB version (mysqli): %s ' . PHP_EOL, $version->version);
Show:  
Copy Clear