for语句错误

问题描述

<html><body><table><tr><%for(i=1;i<6;i++){Response.write("<td>"+"</td>");}%></tr></table></body></html>以上是代码,当调试时提示如下:错误类型:MicrosoftVBScript编译器错误(0x800A03F2)缺少标识符/snail/TableCreate.asp,line29,column4for(i=0;i<6;i++)---^浏览器类型:Mozilla/4.0(compatible;MSIE7.0;WindowsNT5.1;Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.1;SV1);.NETCLR2.0.50727)网页:POST59???/snail/TableCreate.aspPOSTData:tabled=&tabler=&submit=%CC%E1%BD%BB%B2%E9%D1%AF%C4%DA%C8%DD时间:2009年2月18日,13:01:29请问各位这是怎么回事?

解决方案

解决方案二:
<%for(i=1;i<6;i++)%>asp.net是:for(inti=1;i<6;i++)
解决方案三:
<%for(i=1;i<6;i++)%>asp.net是:for(inti=1;i<6;i++)
解决方案四:
变量i没定义类型吧for(inti=1;i<6;i++)
解决方案五:
我现在用的是ASP调试.
解决方案六:
如果用ASPVBScriptfor循不这样写fori=0to10ifi=0thenexitforendifnext
解决方案七:
对不起,上面字没打完.........如果用ASPVBScriptfor循不那样写,而是这样写fori=0to10ifi=0thenexitforendifnext

时间: 2024-08-07 00:03:49

for语句错误的相关文章

ASP+Access莫名奇妙的sql语句错误解决

有时候写ASP用conn.execute(sql)查询.更新.插入Access数据库数据时,明明正确的语句却往往会显示sql语句错误,相当恼火,特进行了归纳,可适当为字段添加"["."]"解决: 例1:select * from a如出现错误,可改为:select * from [a] 例2:UPDATE [user] SET password = '"&data1&"' where secname='"&dat

access-sql语句错误,帮忙看下问题在哪

问题描述 sql语句错误,帮忙看下问题在哪 update Chongzhi set JinE=(select JinE from Chongzhi where Id=12) where ID=1;access中 解决方案 http://www.jb51.net/article/53835.htm 解决方案二: (select JinE from Chongzhi where Id=12)的值单独发sql查出来,再作为参数传到update语句中 解决方案三: sql语句的错误 解决方案四: 我一般

网页显示SQL语句错误???

问题描述 网页显示SQL语句错误??? 网页显示 (Table 'zjwdb_305329.wy_kefu' doesn't exist [ SQL语句 ] : SHOW COLUMNS FROM wy_kefu) 是怎么回事???SQL语句错误??显示具体位置在(LINE: 320).而此文件中第320行显示:trace($this->error,'','ERR');应该怎么改???谢谢啊 解决方案 这不是很明显,没有 wy_kefu 这张表 解决方案二: 是数据库没有wy_kefu 这张表吗

c语言-C语言switch语句 错误 请指教

问题描述 C语言switch语句 错误 请指教 #include ""stdio.h""void main(){ int yearmonthday;//定义年月天数,闰年等于366天,平年等于365天 printf(""请输入月份.年份:""); scanf(""%d%d""&month&year); switch(month) { case 1:day=31;break

sql 函数-mysql创建函数一直提示语句错误

问题描述 mysql创建函数一直提示语句错误 我在数据库的部门表里存的树形结构,在已知子部门时向上查找所有父级部门,写的函数如下 CREATE FUNCTION queryAllDept(@currdeptid varchar(50)) returns varchar(200) BEGIN declare @allname varchar(200) DEFAULT ''; declare @tempname varchar(200) DEFAULT ''; declare @tempparid

update-sql语句错误,看着晕。

问题描述 sql语句错误,看着晕. String sql="update userInfo set(NAME=?,EMPCODE=?,DEPTCODE=?,SEX=?,TEL=?,MOBILE=?,STATE=?,USERTYPE=?,ADDRESS=?,POSTALCODE=?,STATION=?,QQ=?) " + " where userId=?"; You have an error in your SQL syntax; check the manual

语句错误 求打神指导!!!!!

问题描述 语句错误 求打神指导!!!!! var id =window.document.getElementById(atr).style.backgroundColor = "#ff6a00"; 不能改变背景 有什么错误么? 解决方案 atr加个引号............getElementById("atr")..............

access-C#连接Acess做密码修改的程序,程序提示UPDATE语句错误。各位帮个忙

问题描述 C#连接Acess做密码修改的程序,程序提示UPDATE语句错误.各位帮个忙 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.OleD

php5-新手提问:php中数据库查询语句错误$mysqli-&amp;amp;gt;query()有错怎么回事?

问题描述 新手提问:php中数据库查询语句错误$mysqli->query()有错怎么回事? 问的东西在这 解决方案 sql语句直接数据库中查询有没有问题. 一般是sql语法错误 解决方案二: 能帮我看看吗?我找不出sql语法错误 解决方案三: 你的SQL语句连接的时候注意空格,检查一下where和and这两处前面有没有空格. 另外最后用参数化查询,既可以防止注入攻击,也更直观,还提高效率. 解决方案四: 你的SQL语句连接的时候注意空格,检查一下where和and这两处前面有没有空格. 另外最

sql-用SSH SQL语句错误哪里有错呢

问题描述 用SSH SQL语句错误哪里有错呢 select this_.pid as pid2_0_, this_.pname as pname2_0_, this_.market_price as market3_2_0_, this_.shop_price as shop4_2_0_, this_.image as image2_0_, this_.pdesc as pdesc2_0_, this_.is_hot as is7_2_0_, this_.pdate as pdate2_0_,