$select = "SELECT * FROM tsv_sablonah WHERE sablona_id = '".(int)$sablona."'"; if($this->db->query($select)->num_rows() > 0 ){ return $this->db->query($select)->row(); } else { return ''; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter