Welcome Guest, Not a member yet? Register   Sign In
insert problem
#11

[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è
#12

[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
#13

[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è
#14

[eluser]dianikol85[/eluser]
I will look at it again and post it back. as soon as i solve it
#15

[eluser]petroz[/eluser]
These types of questions do not belong on this forum!
#16

[eluser]InsiteFX[/eluser]
You did not show the code for this!
Code:
$this->mytable_model->do_the_insert();

InsiteFX
#17

[eluser]dianikol85[/eluser]
Code:
$this->user_model->user_insert($user_array)

It's in the post where i provide the methods i use




Theme © iAndrew 2016 - Forum software by © MyBB