Показать сообщение отдельно

  #2  
Старый 12.12.2009, 05:25
xena-mil1
Познающий
Регистрация: 17.10.2006
Сообщений: 83
Провел на форуме:
552846

Репутация: 55
По умолчанию

PHP код:
<html>
<
title>Queries from the MS-SQL database with ASP</title>
<
body bgcolor="FFFFFF">
<
h2>Query from table <b>products</bwith ASP</h2>

<%

Set conn Server.CreateObject("ADODB.Connection")
conn.open "PROVIDER=SQLOLEDB;UID=user;PWD=pass;DATABASE=pubs"

'This code block will create a recordset
Set rs = Server.CreateObject("ADODB.Recordset")
SQL = "select * from testTisch"
rs.open SQL, conn

'
will iterate to display the records got from the database
While Not rs.EOF
response
.write(rs("testColEin") & " " rs("testColZwei"))
rs.MoveNext
Wend

'closes the connection
rs.close
conn.close
Set rs = Nothing
Set conn = Nothing

%>
</body>
</html> 
 
Ответить с цитированием