Welcome Guest, Not a member yet? Register   Sign In
Insert array into database
#3

[eluser]Randy Casburn[/eluser]
You haven't given us enough information. I'm still confused by all sorts of things I see here and have avoided this post because of that. But I'll give this a shot for fear of looking like the fool that I am.

Let's start with the fact that you've not shown us what the HTML actually looks like. So we cannot resolve the first error for you. It would appear to me that the first error is thrown because the name of the dropdown is defined as 'shatterproof[0][3]' since that is what you passed to the form helper function and not 'shatterproof'.

The second error? Um...there isn't a column in your table called '0'. It doesn't get any simpler than that. Your query is structured improperly. Since you've not provided any of that, we can't help with any of that.

It's also very, very weird to create a variable named $sql that is simply an array of form data.

But maybe that's just me.

Randy


Messages In This Thread
Insert array into database - by El Forum - 07-23-2008, 12:38 PM
Insert array into database - by El Forum - 07-24-2008, 08:30 AM
Insert array into database - by El Forum - 07-24-2008, 10:08 AM
Insert array into database - by El Forum - 07-24-2008, 10:25 AM
Insert array into database - by El Forum - 07-24-2008, 10:34 AM
Insert array into database - by El Forum - 07-24-2008, 10:38 AM
Insert array into database - by El Forum - 07-24-2008, 10:41 AM
Insert array into database - by El Forum - 07-24-2008, 10:43 AM
Insert array into database - by El Forum - 07-24-2008, 10:48 AM
Insert array into database - by El Forum - 07-24-2008, 11:00 AM
Insert array into database - by El Forum - 07-24-2008, 11:49 AM
Insert array into database - by El Forum - 07-24-2008, 12:04 PM
Insert array into database - by El Forum - 07-24-2008, 12:09 PM
Insert array into database - by El Forum - 07-24-2008, 01:44 PM
Insert array into database - by El Forum - 08-26-2008, 12:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB