Monday, February 25, 2008

Duh! Making the checkbox work.

First get the syntax to UPDATE a database entry correctly. I had quotes where I didn't need them and that broke things.

Should look like:

$SqlStatement = "UPDATE table_name SET table_item=item, table_item2=item2 WHERE table_item="something";

So where it stands now is that the checked entry seems to update, but only one item. If I have multiple items checked, only the last item checked registers. Not sure why my loops are not working.

No comments: