Skip to content
Advertisement

Attempt to assign property of non-object when updating the existing the record

I want to update some records from my table and if user has uploaded a picture, I need to upload it and update the seller_certificate_card as well.

Here is my code:

JavaScript

And the seller_certificate_card at the table has this structure:

seller_certificate_card varchar(255)

But I get this error:

Attempt to assign property ‘seller_certificate_card’ of non-object

So what’s going wrong here? How can I fix this issue?

Advertisement

Answer

JavaScript

Try This.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement