You’ve just answered your own question 🙂
You can do something like this:
$query = $this->db->get();
$ret = $query->row();
return $ret->campaign_id;
You can read more about it here: http://www.codeigniter.com/user_guide/database/results.html
More Related Contents:
- Update the value of a field in database by 1 using codeigniter
- What’s the difference between identifying and non-identifying relationships?
- To Do or Not to Do: Store Images in a Database [duplicate]
- Can I have multiple primary keys in a single table?
- What is an ORM, how does it work, and how should I use one? [closed]
- What are database normal forms and can you give examples? [closed]
- What is the difference between an entity relationship model and a relational model?
- Best practices for storing postal addresses in a database (RDBMS)?
- What are the advantages of using a single database for EACH client?
- Is it possible to generate django models from the database?
- Run a single Maven plugin execution?
- How to create an auto delete mechanism for firestore? (deleting data after time period) [closed]
- Do stored procedures run in database transaction in Postgres?
- What is a View in Oracle?
- Advantages / Disadvantages of pconnect option in CodeIgniter
- Convert SQLITE SQL dump file to POSTGRESQL
- Alternatives to Entity-Attribute-Value (EAV)?
- Spring Batch Framework – Auto create Batch Table
- What are the main differences between Redis Pub/Sub and Redis Stream?
- Adding a new value to an existing ENUM Type
- What’s the better database design: more tables or more columns?
- Does anyone know of a good library for mapping a person’s name to his or her gender? [closed]
- Minimum GRANTs needed by mysqldump for dumping a full schema? (TRIGGERs are missing!!)
- Should OLAP databases be denormalized for read performance? [closed]
- “Cannot drop database because it is currently in use”. How to fix?
- Android Room Persistence library and Kotlin
- How can I import a .sql file into my Heroku postgres database?
- Is writing server log files to a database a good idea?
- Predict next auto-inserted row id (SQLite)
- Best beginner resources for understanding the EAV database model? [closed]