Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
Archived Discussions
Archived Development & Programming
is there any super easy cool trick to get the next id in codeigniter :))
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
is there any super easy cool trick to get the next id in codeigniter :))
El Forum
Guest
#8
07-25-2009, 10:57 AM
[eluser]mimran[/eluser]
Hi,
Not an elegant way however keeping the logic very simple, basically what you wanted.
increment the id the way you wanted (i.e. id+1 but just run a check against id's to see if it exists)
that will do the trick.
regards
Messages In This Thread
is there any super easy cool trick to get the next id in codeigniter :))
- by El Forum - 07-24-2009, 06:06 PM
is there any super easy cool trick to get the next id in codeigniter :))
- by El Forum - 07-24-2009, 06:15 PM
is there any super easy cool trick to get the next id in codeigniter :))
- by El Forum - 07-24-2009, 06:23 PM
is there any super easy cool trick to get the next id in codeigniter :))
- by El Forum - 07-24-2009, 06:27 PM
is there any super easy cool trick to get the next id in codeigniter :))
- by El Forum - 07-24-2009, 06:28 PM
is there any super easy cool trick to get the next id in codeigniter :))
- by El Forum - 07-24-2009, 06:32 PM
is there any super easy cool trick to get the next id in codeigniter :))
- by El Forum - 07-24-2009, 06:52 PM
is there any super easy cool trick to get the next id in codeigniter :))
- by El Forum - 07-25-2009, 10:57 AM
is there any super easy cool trick to get the next id in codeigniter :))
- by El Forum - 07-26-2009, 01:32 AM
is there any super easy cool trick to get the next id in codeigniter :))
- by El Forum - 07-26-2009, 07:59 AM
is there any super easy cool trick to get the next id in codeigniter :))
- by El Forum - 07-26-2009, 10:07 AM
is there any super easy cool trick to get the next id in codeigniter :))
- by El Forum - 07-26-2009, 10:18 AM
is there any super easy cool trick to get the next id in codeigniter :))
- by El Forum - 07-26-2009, 11:17 AM
is there any super easy cool trick to get the next id in codeigniter :))
- by El Forum - 07-26-2009, 12:26 PM
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB