Jump to content

Failed to update category.


Guest Mask 9000

Recommended Posts

Guest Mask 9000

Dear All

I've added an additional field in the database table 'CubeCart_inventory' called 'collectionsyn' which stores values in INTEGER format. It stores values either as 1 or 0 and 0 being a default value.

It is basically for checking whether the product is a collection or no.

Similiarly I've added the field on Administrator - > Add Product ->

<input type="checkbox" name="collectionsyn" id="collectionsyn" value="<?php if(isset($results[0]['collectionsyn'])) echo $results[0]['collectionsyn']; ?>" <?php if(isset($results[0]['collectionsyn']) && $results[0]['collectionsyn']==1) echo "Checked" ?>>




add added in the code:


$record["collectionsyn"] = $db->mySQLSafe($_POST['collectionsyn']);

While adding it works fine. But when I edit it, it gives me the error only on when I check the check box or uncheck the check box of the field 'collectionsyn'

Failed to update category.

I tried to check whether I need to mention it anywhere?

Please let me know how I can get this fixed

Thanks & Regards

Yusuf

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...