可能重复:
调用Sub时不能使用括号
据我所知这是正确的,但我得到错误"在调用Sub时不能使用括号"之前从未使用过ASP ...任何人都可以为我解决问题吗?码:
<%TESTWeb1.RecentlyViewedDisplay("Recently Viewed Header","Recently Viewed Entry","Recently Viewed Group Entry")%>
Run Code Online (Sandbox Code Playgroud) 我正在关注一个教程,在设置完所有内容后,我得到了:
致命错误:未捕获异常'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)
我该如何解决这个错误?
我正在使用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)
但它不起作用.我究竟做错了什么?