Welcome Guest, Not a member yet? Register   Sign In
Mysql not updating
#2

What does your view look like?

In your controller's edit method, you appear to be updating the 'websites' table with a slug which is generated from the title field in the view, but when you update the 'sys_routes' table, you attempt to pull the slug field from $this->input->post().

In the controller's add method, you generate slug from the title twice before attempting to insert it into the 'websites' table, and, again, you attempt to pull the slug field from $this->input->post() when you insert into the sys_routes table.

If the slug was in $this->input->post() all along, I'm not sure why you would generate it from the title when you send it to the 'websites' table.
Reply


Messages In This Thread
Mysql not updating - by elaka - 02-11-2015, 02:55 PM
RE: Mysql not updating - by mwhitney - 02-13-2015, 08:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB