Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Mar 5, 2018 9:14 AM
Views: 17
  1. $sql = "SELECT * FROM `$table` WHERE `gender` = 'Men' LIMIT 30";
  2. $query = $this->db->query($sql);
  3. $result = $query->result_array(); //return array