Normanton Catering Technicians - Rational Oven Service Partner
Search for an oven
 Home
 About Us
 Spares
 Cleaning Products
 Re-Conditioned
 Service Contracts
 Contact Us
 Links

Re-Conditioned


<% Dim rsNews 'Database recordset holding the news items Dim intNewsItems 'Loop counter for displaying the news items 'Create recorset object Set rsNews = Server.CreateObject("ADODB.Recordset") 'Initalise the strNewsSQL variable with an SQL statement to query the database strNewsSQL = "SELECT TOP " & intPreviewNewsItems & " tblNews.* FROM tblNews ORDER BY News_Date DESC;" 'Query the database rsNews.Open strNewsSQL, adoNewsCon 'If there are no news item to display then display a message seying so If rsNews.EOF Then Response.Write("Sorry, There is no Site News Items to display") 'Loop round to display each of the news items For intNewsItems = 1 to intPreviewNewsItems 'Iv there are no records then exit for loop If rsNews.EOF Then Exit For %>

" target="_self"> <% = FormatDateTime(rsNews("News_Date"), vbLongDate) %> " target="_self">
<% = rsNews("News_title") %>

<% = rsNews("Short_news") %> (" target="_self">more details)




<% 'Move to the next record in the recordset rsNews.MoveNext Next 'Reset server objects rsNews.Close Set rsNews = Nothing Set strAdoNewsConfig = Nothing Set adoNewsCon = Nothing %>

 


Normanton Catering Technicians accept PayPal