小编Bob*_*Bob的帖子

ASP"调用Sub时不能使用括号"

可能重复:
调用Sub时不能使用括号

据我所知这是正确的,但我得到错误"在调用Sub时不能使用括号"之前从未使用过ASP ...任何人都可以为我解决问题吗?码:

<%TESTWeb1.RecentlyViewedDisplay("Recently Viewed Header","Recently Viewed Entry","Recently Viewed Group Entry")%>
Run Code Online (Sandbox Code Playgroud)

parentheses asp-classic

4
推荐指数
1
解决办法
1万
查看次数

Smarty异常:"请使用parent :: __ construct()来调用父构造函数"

我正在关注一个教程,在设置完所有内容后,我得到了:

致命错误:未捕获异常'SmartyException',消息'请使用parent :: __ construct()来调用父constuctor'

这是我的配置文件:

<?php
// SITE_ROOT contains the full path to the tshirtshop folder
define('SITE_ROOT', dirname(dirname(__FILE__)));
// Application directories
define('PRESENTATION_DIR', SITE_ROOT . '/presentation/');
define('BUSINESS_DIR', SITE_ROOT . '/business/');
// Settings needed to configure the Smarty template engine
define('SMARTY_DIR', SITE_ROOT . '/libs/smarty/');
define('TEMPLATE_DIR', PRESENTATION_DIR . 'templates');
define('COMPILE_DIR', PRESENTATION_DIR . 'templates_c');
define('CONFIG_DIR', SITE_ROOT . '/include/configs');
?>
Run Code Online (Sandbox Code Playgroud)

我的目录结构是:

mydomain.com/test/include
mydomain.com/test/libs
mydomain.com/test/presentation
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个错误?

php runtime-error smarty

3
推荐指数
1
解决办法
4747
查看次数

如何使用mysql_fetch_array的结果?

我正在使用while声明,我可以很好地回应每一行,即

echo $row['myrow'];
Run Code Online (Sandbox Code Playgroud)

但我想要的是将结果放入如下链接:

echo "<img src='http://www.mysite.com/images/$row['myrow'].jpg'>";
Run Code Online (Sandbox Code Playgroud)

但它不起作用.我究竟做错了什么?

php mysql arrays fetch

1
推荐指数
1
解决办法
350
查看次数

标签 统计

php ×2

arrays ×1

asp-classic ×1

fetch ×1

mysql ×1

parentheses ×1

runtime-error ×1

smarty ×1