PHPize Online / SQLize Online

A A A
Share      Blog   Popular
Copy Format Clear
create table dummy ( id int, val varchar(32) ); insert into dummy values (5, 'aaa'), (1, 'bbb'), (4, 'ccc'), (2, 'ddd'); SELECT * FROM dummy ORDER BY 'id' 'desc';
Copy
Copy Format Clear
<?php $id = 4; $q = $db::table('dummy')->where('id', $id); $res = $q->get(); print_r ($res);
Show:  
Copy