I want to make META keywords, such as my title display ASPCodeYes: <% = objrs ("title") %>
If <% = objrs ("title") %> the final title is displayed, such as "How to Implement string segmentation ?"
I want to divide a string by two Chinese characters, for example, "character, character string, string segmentation, segmentation, splitting, and implementation"
How to Write ASP code?
Thank you very much.
Copy code The Code is 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 The Code is 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> no data </center>"
Else
%>
<%
Dim I, title
Title = objrs ("title ")
For I = 1 to Len (Title ")-2
Response. Write mid (title, I, 2) & "," 'here is just a demonstration output. You need to assign it to the meta variable by yourself.
Next
%>
Before Meta