另一个T_DNUMBER错误 [英] Another One of Those T_DNUMBER Errors

查看:174
本文介绍了另一个T_DNUMBER错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我被困在使用GoDaddy,因为那是我的客户与之合作的人。我几乎以为这与他们的数据库托管地址有关,但我想确认一下。


上传数据库然后上传网站时,访问链接页面时收到以下错误消息:


解析错误:语法错误,意外的T_DNUMBER在D:\Hosting \ ###### \\\ html \ Connections \ saveFairgrounds .php第9行


这里是错误的代码:

First, I am stuck using GoDaddy because that''s who my client went with. I''m almost thinking this is related to their address for the database hosting, but I would like confirmation on that.

Having uploaded the database and then the site, when accessing the linked pages I get the following error message:

Parse error: syntax error, unexpected T_DNUMBER in D:\Hosting\######\html\Connections\saveFairgrounds .php on line 9

Here''s the errant code:

展开 | 选择 | Wrap | 行号

推荐答案

该句号不应该在变量名中,其余的你的代码也提出了问题,但我不确定是否帽子'只是你编辑它的效果。


无论如何,将来,请发布*完整*相关代码,包含在[代码]标签中。这样我们就可以查看行号,在代码中找到它,并将2和2放在一起,而不必担心代码中的某些异常是否只是修改它的副作用。当然,任何敏感数据都应该更改。


Mark。
That period should not be in the variable name, the rest of your code also raises questions, but I''m not sure if that''s just an effect of you editing it.

Anyway, in future, please post the *full* relevant code, wrapped in [code] tags. That way we can look at the line number, find it in your code, and put 2 and 2 together, without having to worry about whether something strange in the code is just a side-effect of you modifying it. Of course, any sensitive data should be changed.

Mark.


OK。谢谢回复。但是,为了使这项工作更好,这就是整个代码。

OK. Thanks for the reply. But, just to make this work better, here''s the entire code.

展开 | 选择 < span class =codeDivider> | Wrap | 行号


您正在设置变量,然后不使用它们
You are setting variables and then not using them
展开 | 选择 | Wrap | 行号


这篇关于另一个T_DNUMBER错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆