Reply to discussion (solution)
The append_comment is implemented as follows
Here is PHP in charge of dynamic update a TEXTAREA
The bottom is the original PHP, which uses Ajax to implement asynchronous refreshes
Here is where the append_comment is called in add_comment
Figure looked tired, why not stick code out.
What's the code for the error?
Figure looked tired, why not stick code out.
What's the code for the error?
Well, the code can't be copied, dear.
Figure looked tired, why not stick code out.
What's the code for the error?
The error is the first picture Ah, with chrome debug time
What's the use, to see your code before and after the line
What is comments_713? Have you defined it before?
What's the use, to see your code before and after the line
What is comments_713? Have you defined it before?
comments_713 is a string that needs to be passed to Append_comments, which is the append_comment parameter comment_id.
Eldest brother, really can not upload code ah, can not copy, the company's server inside.
If it's a string, shouldn't we enclose it in quotation marks?
Append_comment (713, ' comments_713 '); Didn't you add the ending semicolon?
If it's a string, shouldn't we enclose it in quotation marks?
Append_comment (713, ' comments_713 '); Didn't you add the ending semicolon?
That should be the case.
But I'm going to do that with a variable.
Well, it's a confusing plot, I can't read it.
The error is the Append_comment function
And you're looking for a reason for Add_comment's argument.
How can i solve the problem?
Append_comment look like no problem, see update_comment this bar, or window.open open that Exe_sql.pho page has errors, troubleshooting problems do not understand? Other people can't help you troubleshoot problems, you should first troubleshoot problems to find the code where the problem can be solved