且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

解析错误:语法错误,意外结束...

更新时间:2022-02-26 22:50:06

嗨。


你不能在26号线上正确地关闭你的弦。

这就是你得到这个的原因错误。


此外,关闭该代码中的一个巨大的安全漏洞。

不要将用户输入直接放入SQL查询...或任何东西, 对于这个问题。

在使用它之前总是验证它并消毒它。

mysql_real_escape_query 功能在这里非常有用。


查看 SQL注入。解释为什么这么重要。
Hi.

You don''t close your string properly on line #26.
That''s why you get this error.

Also, to close a huge security hole in that code.
Don''t put user input directly into SQL queries... or anything, for that matter.
Always validate it and sanitize it before using it.
The mysql_real_escape_query function is extremely helpful here.

Check out SQL Injection in the manual. Explains why this is so important.


我如何结束第26行?我试过删除分号和使用)代替},我仍然得到相同的结果。我不确定接下来要尝试什么。
How would I end line 26? I have tried removing the semi-colon and using ) instead of } and I still keep getting the same result. I am not really sure what to try next.


在分号前用双引号关闭字符串。


字符串应该在引号中包含,但你只打开字符串,忘记用第二个引号关闭它。


问题基本上是:
Close the string with a double-quote before the semi-colon.

The string should be enclosed in quote-marks, but you only ever open the string, forgetting to close it with the second quote-mark.

The problem is basically:
展开 | 选择 | Wrap | 行号