[eluser]dsentker[/eluser]
Hey there,
- if i use the Active Record class from CI, do i have to check my data before inserting (e.g. mysql_real_escape_string(); ? ) The Userguide is a litte bit disputed in this thing.
- Another Question: How do i select exactly ONE row from my table? I want to select the Row with id=`85`, for example. Is that the right way?
Code:
$query = $this->db->get('news',1,85);
That produces
Code:
SELECT * from 'news' LIMIT 85,1
.
- In a table with many columns, in inefficient and slow. How can i handle the query below with the Active Record class?
Code:
SELECT id,title,date from 'news' LIMIT 85,1