I want to do meta keywords, such as my title display ASP code is: <% =objrs ("title")%>
If <% =objrs ("title")%> the end-displayed title such as "How is the string split implemented?" ”
I would like to divide the string into two Chinese characters, such as "character, String, string, split, cut, how, what real, realize"
How does the ASP code write?
Thank you so much.
Copy Code code as follows:
Dim i, Title
title = objRS ("title")
For i = 0 to Len (Title) Step 2
Response.Write Mid (title, I, 2) & ","
Next
Copy Code code as follows:
<%
Dim objrs,strsql
Set objrs=server.createobject ("ADODB. RecordSet ")
Strsql= "Select Title,content from Table"
Objrs.open strsql,strconn,1,3
If objRS.EOF Then
Response.Write "<center> does not have this data </center>"
Else
%>
<%
Dim i, Title
title = objRS ("title")
For i = 1 to Len (Title)-2
Response.Write Mid (title, I, 2) & "," ' This is just a demonstration output, you have to assign him to meta variables.
Next
%>
Add to the front of the meta