Skip to content
Advertisement

Only variables should be passed by reference when entering a longer text

I have that strange error that appears when I try to enter a longer text but it works with a simple sentence, this below is my code:

JavaScript

This one below calls the insert method above passing the project:

JavaScript

Advertisement

Answer

I think the error might be that your database has a limit on how many characters the string can be. If you try to insert a string that is longer than the limit, your database may give you an error and not accept the row. I would recommend looking at the table structure and see if that column has a character limit specified.

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