PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
CREATE TABLE user_info(name varchar(64), user_name varchar(64), password varchar(64)); INSERT INTO user_info VALUES ('name', 'user_name', 'password');
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()); // Select using Laravel $sql = $db::table('user_info') ->select('name') ->addSelect(['user_name', 'password','`name` = "name"']) ->get(); print_r($sql);
Show:  
Copy Clear