Home »
MCQs »
FuelPHP MCQs
Suppose you want all the data from the table named as a student then which of the following syntax you will use?
39. Suppose you want all the data from the table named as a student then which of the following syntax you will use?
- $query = DB:query('SELECT * FROM 'student'');
- $query = DB::query('SELECT * FROM 'student'');
- $query = ::query('SELECT * FROM 'Student'');
Answer: B) DB::query('SELECT * FROM 'student'');
Explanation:
$query = DB::query('SELECT * FROM 'student''); is the correct syntax.