12-28-2016, 02:40 PM
http://pastebin.com/8iYMCJFh
A few notes:
1. You only need DB::getInstance if you are not getting that from the header. It doesn't hurt, but you don't need it. I need to update the database documentation.
2. You were close on your fields array, but on the right side of the array you either need a variable that you created earlier or the input::get to get the info directly from the form.
3. When you're doing your update query, the table name needs to be 'tablename' unless you are using a variable. If you are using a variable, then you don't need quotes.
4. If you do Redirect::to you don't need the word location. Even if header/location doesn't have a problem on your server, it could come up if you ever move servers.
I hope this helps. Did you get my email?
A few notes:
1. You only need DB::getInstance if you are not getting that from the header. It doesn't hurt, but you don't need it. I need to update the database documentation.
2. You were close on your fields array, but on the right side of the array you either need a variable that you created earlier or the input::get to get the info directly from the form.
3. When you're doing your update query, the table name needs to be 'tablename' unless you are using a variable. If you are using a variable, then you don't need quotes.
4. If you do Redirect::to you don't need the word location. Even if header/location doesn't have a problem on your server, it could come up if you ever move servers.
I hope this helps. Did you get my email?