Welcome Guest, Not a member yet? Register   Sign In
Error when inserting from $_POST with Active Record
#2

[eluser]rogierb[/eluser]
Hey there,

1: RTFM, there is a thing called the user_guide
2: NEVER everr use $_POST to insert, always clean up your vars.
3: remove the submit field/button from your form(rename it, but much much better would be to do point 2).
4: Article_id is not inserted as a string just because there a quotes around it. It will still be processed as an integer.


Messages In This Thread
Error when inserting from $_POST with Active Record - by El Forum - 10-19-2009, 12:13 AM
Error when inserting from $_POST with Active Record - by El Forum - 10-19-2009, 12:39 AM
Error when inserting from $_POST with Active Record - by El Forum - 10-19-2009, 01:37 AM
Error when inserting from $_POST with Active Record - by El Forum - 10-19-2009, 01:57 AM
Error when inserting from $_POST with Active Record - by El Forum - 10-19-2009, 11:27 AM
Error when inserting from $_POST with Active Record - by El Forum - 10-19-2009, 11:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB