×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Mar 28, 2018 4:12 PM
Views: 2999
  1. $sql = "SELECT * FROM $table_name WHERE `sync_status` = 'new' LIMIT 1";
  2. $query = $this->db->query($sql);
  3. $result = $query->row_array(); //return array
  4. if ($result == NULL){
  5.   echo 'No data';
  6. }