<%@LANGUAGE="VBSCRIPT"%> <% Dim rs_news Dim rs_news_cmd Dim rs_news_numRows Set rs_news_cmd = Server.CreateObject ("ADODB.Command") rs_news_cmd.ActiveConnection = MM_con_bobby_STRING rs_news_cmd.CommandText = "SELECT * FROM news ORDER BY ndate DESC" rs_news_cmd.Prepared = true Set rs_news = rs_news_cmd.Execute rs_news_numRows = 0 %> <% Dim rs_tour Dim rs_tour_cmd Dim rs_tour_numRows Set rs_tour_cmd = Server.CreateObject ("ADODB.Command") rs_tour_cmd.ActiveConnection = MM_con_bobby_STRING rs_tour_cmd.CommandText = "SELECT * FROM tourd ORDER BY tfrom ASC" rs_tour_cmd.Prepared = true Set rs_tour = rs_tour_cmd.Execute rs_tour_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = -1 Repeat1__index = 0 rs_news_numRows = rs_news_numRows + Repeat1__numRows %> <% Dim Repeat2__numRows Dim Repeat2__index Repeat2__numRows = 3 Repeat2__index = 0 rs_tour_numRows = rs_tour_numRows + Repeat2__numRows %> <% Dim MM_paramName %> <% ' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters Dim MM_keepNone Dim MM_keepURL Dim MM_keepForm Dim MM_keepBoth Dim MM_removeList Dim MM_item Dim MM_nextItem ' create the list of parameters which should not be maintained MM_removeList = "&index=" If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "=" End If MM_keepURL="" MM_keepForm="" MM_keepBoth="" MM_keepNone="" ' add the URL parameters to the MM_keepURL string For Each MM_item In Request.QueryString MM_nextItem = "&" & MM_item & "=" If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item)) End If Next ' add the Form variables to the MM_keepForm string For Each MM_item In Request.Form MM_nextItem = "&" & MM_item & "=" If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item)) End If Next ' create the Form + URL string and remove the intial '&' from each of the strings MM_keepBoth = MM_keepURL & MM_keepForm If (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1) End If If (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1) End If If (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1) End If ' a utility function used for adding additional parameters to these strings Function MM_joinChar(firstItem) If (firstItem <> "") Then MM_joinChar = "&" Else MM_joinChar = "" End If End Function %> <% ' Trim by length (by FELIXONE.it) Function TrimByLength(str, slen, word) trail = "" If (Len(str) > slen) Then trail = "..." str = Left(str, slen) For i=1 To Len(str) If (Mid(str,i,1) = " ") Then pos = i Next If (word) Then str = Left(str, pos) TrimByLength = str & trail End Function %> Bobby Caldwell
Bobby Caldwell Online Store Japanese Fan Page Image gallery Song Writing Video Film Usage Awards
Bobby Caldwell Official Site Home Bio Tour Dates Discography News Message Board Contact

Bobby at a Glance
<% While ((Repeat2__numRows <> 0) AND (NOT rs_tour.EOF)) %>
<%=(rs_tour.Fields.Item("tfrom").Value)%>
<%=(rs_tour.Fields.Item("tvenue").Value)%>
<%= TrimByLength((rs_tour.Fields.Item("ttext").Value), 80, true)%>

<% Repeat2__index=Repeat2__index+1 Repeat2__numRows=Repeat2__numRows-1 rs_tour.MoveNext() Wend %>


[view all tour dates]

Email:
 


News

<% While ((Repeat1__numRows <> 0) AND (NOT rs_news.EOF)) %>
<%=(rs_news.Fields.Item("nheader").Value)%> <%=(rs_news.Fields.Item("ndate").Value)%>
[">more info]

<% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 rs_news.MoveNext() Wend %>
 
home : bio : tour dates : discography : video gallery : images gallery : song writing

film usage : awards received : news : message board : contact : friends

Copyright 2021 Bobby Caldwell Entertainment, Ltd.


<% rs_news.Close() Set rs_news = Nothing %> <% rs_tour.Close() Set rs_tour = Nothing %>