Input hidden |
[eluser]the_unforgiven[/eluser]
like this? Code: function createmeeting()
[eluser]ibnclaudius[/eluser]
No, like this: Code: class Model_name extends CI_Model
[eluser]the_unforgiven[/eluser]
Parse error: syntax error, unexpected T_VAR in /Applications/MAMP/htdocs/ksd/application/controllers/admin.php on line 8
[eluser]ibnclaudius[/eluser]
Try this: Code: //...
[eluser]the_unforgiven[/eluser]
no errors, but still not inserting the CustomerID....
[eluser]limit[/eluser]
If your getting the $_POST[''] sent and its not inserting check your database "type" for that row. Maybe its not set right or your passing Varchar to INT().. http://dev.mysql.com/doc/refman/5.0/en/s...rview.html
[eluser]the_unforgiven[/eluser]
othe fields are inserting fine just the Customer ID one is just inserting a Zero
[eluser]the_unforgiven[/eluser]
It cant be because passing Varchar to INT().. the field in the db is INT() but the passing data is number which is a INT() right?
[eluser]limit[/eluser]
Correct, but in your output above you had Code: ["CustomerID"]=> string(16) "MR Webber" which made me think that was your problem. Only other thing I can think of is its something with the field being "read only" or duplicate name fields in your html. This should be easy to narrow down just by viewing your page source and dumping your post vars. Code: print_r($this->input->post()); die(); Did you try hard-coding a value for CustomerID in your data array and see if it inserts? |
Welcome Guest, Not a member yet? Register Sign In |