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
insert problem
Pages (2):
« Previous
1
2
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
insert problem
El Forum
Guest
#11
02-28-2011, 12:37 PM
[eluser]Cristian Gilè[/eluser]
I have reproduced something similar to your code but it works fine without any duplicated row.
There is a bug in your code that calls twice the user_insert method.
Cristian Gilè
El Forum
Guest
#12
02-28-2011, 06:03 PM
[eluser]dianikol85[/eluser]
I end it up using flashdata and <b>redirect()</b> As i read in the user guide this this is the apropriate way for notification messages like these i want. such as "row inserted" etc.
I think this is the best practice
El Forum
Guest
#13
02-28-2011, 06:57 PM
[eluser]Cristian Gilè[/eluser]
Yes, a flash session and redirection is a best practice but I was curious to know what it was casuing the issue.
Cristian Gilè
El Forum
Guest
#14
02-28-2011, 07:00 PM
[eluser]dianikol85[/eluser]
I will look at it again and post it back. as soon as i solve it
El Forum
Guest
#15
02-28-2011, 08:08 PM
[eluser]petroz[/eluser]
These types of questions do not belong on this forum!
El Forum
Guest
#16
03-01-2011, 02:38 AM
[eluser]InsiteFX[/eluser]
You did not show the code for this!
Code:
$this->mytable_model->do_the_insert();
InsiteFX
El Forum
Guest
#17
03-01-2011, 02:42 AM
[eluser]dianikol85[/eluser]
Code:
$this->user_model->user_insert($user_array)
It's in the post where i provide the methods i use
Pages (2):
« Previous
1
2
--------------------
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