Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Placement of script with HTML

Status
Not open for further replies.

mikemedia

Programmer
Apr 28, 2006
39
US
I've got vbScript between the <head> and <body>

BLAH BLAH BLAH...
DIM recCount
'objRS.MoveLast
'IF Not objRS.EOF THEN
recCount = 0
'Do UNTIL objRS.EOF
if objRS.RecordCount>0 then


Then within numerous <td>'s I have:
<td><% Response.Write "f_req_1st = " & objRS("f_req_1st") %></td>
<%

I've tried to put the following after </body> and before </html> to no avail. What do I really need to do?

'recCount = recCount + 1
'objRS.MoveNext
'Loop

ELSE
Response.Write "Sorry, there are no records in our database."
END IF
objRS.Close
objConn.Close
%>
</htm>
 
To me it looks like you need to output another </body> in your else statement. It doesn't matter what your outputting in the top part of the if statement, you haven't outputted and end body tag in the bottom part (the else).

However, I'm a little confused what your asking about since you didn't really ask a question in your post...? Glad you go the details in there but not sure what kind of feedback your looking for :)

-T

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top