解析错误:语法错误,意外结束... [英] Parse error: syntax error, unexpected $end in...
本文介绍了解析错误:语法错误,意外结束...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直收到这个错误,我无法理解。我的花括号是关闭的,我正在使用正确的标签<?php打开和?>关闭我的代码。有人可以帮帮我!
这是我的代码:
I keep getting this error and I cannot figure it out. My curly brackets are closed, and I am using the correct tags for <?php to open and ?> to close my code. Can someone please help me!
Here is my code:
展开 | 选择 | Wrap | 行号
推荐答案
嗨。
你不能在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 | 行号
这篇关于解析错误:语法错误,意外结束...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文