我有这个asp脚本,但是我收到一个错误: 预期结束......我做错了什么?
我尝试了所有内容并编辑了文件但仍然出现此错误
我已将客户文件放在同一目录中,
有人可以帮助我,我不擅长这个
<%Option Explicit%>
<html>
<head>
<title>car track Tutorial</title>
</head>
<body>
<%
Dim objFSO,oInStream,sRows,arrRows
Dim sFileName
sFileName = "customer.csv"
'*** Create Object ***'
Set objFSO = CreateObject("Scripting.FileSystemObject")
'*** Check Exist Files ***'
If Not objFSO.FileExists(Server.MapPath(sFileName)) Then
Response.write("File not found.")
Else
'*** Open Files ***'
Set oInStream = objFSO.OpenTextFile(Server.MapPath(sFileName),1,False)
%>
<table width="600" border="1">
<tr>
<th width="91"> <div align="center">CustomerID </div></th>
<th width="98"> <div align="center">Name </div></th>
<th width="198"> <div align="center">Email </div></th>
<th width="97"> <div align="center">CountryCode </div></th>
<th width="59"> <div align="center">Budget </div></th>
<th width="71"> <div align="center">Used </div></th>
</tr>
<%
Do Until oInStream.AtEndOfStream
sRows = oInStream.readLine
arrRows = Split(sRows,",")
%>
<tr>
<td><div align="center"><%=arrRows(0)%></div></td>
<td><%=arrRows(1)%></td>
<td><%=arrRows(2)%></td>
<td><div align="center"><%=arrRows(3)%></div></td>
<td align="right"><%=FormatNumber(arrRows(4),2)%></td>
<td align="right"><%=FormatNumber(arrRows(5),2)%></td>
</tr>
<%
Loop
oInStream.Close()
Set oInStream = Nothing
end if
%>
</table>
</body>
</html>
这是错误
脚本错误:预期'结束'
Dim objFSO,oInStream,sRows,arrRows
Dim sFileName
sFileName = "customer.csv"
'*** Create Object ***'
Set objFSO = CreateObject("Scripting.FileSystemObject")
'*** Check Exist Files ***'
If Not objFSO.FileExists(Server.MapPath(sFileName)) Then
Response.write("File not found.")
Else
'*** Open Files ***'
Set oInStream = objFSO.OpenTextFile(Server.MapPath(sFileName),1,False)
我更改了它,但现在它只读取我的csv文件中的第4行...
答案 0 :(得分:0)
您缺少$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$query = new WP_Query( array(
'posts_per_page' => 10,
'category__not_in'=>array(5,3,17),
'paged'=>$paged ) );
声明:
End If