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:12 AM
Views: 13
  1. $sql = "SELECT * FROM `$table` WHERE `ASIN` = '$ASIN'";
  2. $query = $this->db->query($sql);
  3. $result = $query->row_array(); //return array
  4. /*$row = $query->row(); //return 1 row
  5. $row = $query->first_row(‘array’)
  6. $row = $query->last_row(‘array’)
  7. $row = $query->next_row(‘array’)
  8. $row = $query->previous_row(‘array’
  9. $row = $query->row_array(5); //If you want a specific row returned you can submit the row number as a digit in the first parameter:
  10. */