asp page (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


s2bn1 -> asp page (7/21/2002 12:38:43)

In my site I had done an asp page using DRW in FP 2000 and the url of my page is http://www21.brinkster.com/s2bt/ .In the html where should I change for the ODBC connection.For the ODBC connection the script what they had given is
' String1
Set Conn = Server.CreateObject(" ADODB.Connection" )
Conn.Open " DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath(" \UserName\db\dbname.mdb" )

' Or you can use this one

' String2
Set Conn = Server.CreateObject(" ADODB.Connection" )
sConnection = " Provider=Microsoft.Jet.OLEDB.4.0;" & _
" Data Source=" & Server.MapPath(" \UserName\db\dbname.mdb" ) & " ;" & _
" Persist Security Info=False"
Conn.Open(sConnection).
Please help me.
Sheeba




Long Island Lune -> RE: asp page (7/21/2002 12:56:28)

s2bn1,

Try this:


Set DataConn = Server.CreateObject(" ADODB.Connection" )
Set CmdRecord = Server.CreateObject(" ADODB.Recordset" )
DataConn.Open " DBQ=" & Server.Mappath(" /UserName/db/dbname.mdb" ) & " ;Driver={Microsoft Access Driver (*.mdb)};"


Hope this helps.
LLL




Long Island Lune -> RE: asp page (7/21/2002 13:01:01)

s2nb1,

I forgot to mention, always watch out for the differnece between " /" and " \" in a path. They can give you a headache...

Good Luck
LLL




s2bn1 -> RE: RE: asp page (7/21/2002 14:06:28)

I want to know in the FP DRW page where should I replace this code, is it in global.asa file.




Long Island Lune -> RE: asp page (7/21/2002 18:20:43)

s2bn1,

No, do not place it in your gloabal asa file. This ASP script should go into the page itself. Your ASP scripts should be somewhere near the top of the page. Example:

<html>
<head>

Your heading section is here

</head>
<body>

<%
asp script goes here
%>

Rest of your page follows..

Placing the script in a specific postiion on the page depends on when you want it executed. If you need your script executed immediately as the page loads in, put the script where I stated. If you need the page to load in and/or a component to do something first (before the script is executed, then place it anywhere you need it below the point I just described. 7 times out of 10 most scripts go in the beggining.
LLL




s2bn1 -> RE: RE: asp page (7/21/2002 23:28:35)

Then what should I do with the rest of the FP generated scripts like " ODBC connection=' database1' etc.Should I have to delete it.




Long Island Lune -> RE: asp page (7/21/2002 23:48:37)

s2bn1,

Are you talking about your Global.asa file??? No, don' t delete anything in your global.asa file. Leave everything in that file alone, especially if you do not know what your doing.

The Global.asa file is the connection between your database(s) and your Frontpage website project. Only alter this file is you know what you are doing.

When you use the Database Results Wizard (DRW), this file (Global.asa) connects the DRW to your database(s). If you play with this file, your connection could be put into jeporady. If this IS the case, let me know. If you did not touch it, then don' t.

When using .ASP in a webpage, your creating your OWN connection to the database. Your not using the Global.asa file like you would for the DRW. Generally, you use .ASP to create a script when you need to perform functions that are OUTSIDE the scope of the DRW.
LLL.





Long Island Lune -> RE: asp page (7/21/2002 23:50:18)

s2nb1,

If you were NOT talking about your Global.asa file, then let me know.
LLL




s2bn1 -> RE: RE: asp page (7/22/2002 1:07:22)

No, I am not talking about the global.asa file. I mean the asp page itself. When we use DRW for calling database, the FP generates some scripts so when I insert the above script what should I do with these scripts.Hope the question is clear.Sorry for making you confused.
This part of the page

<%
fp_sQry=" SELECT * FROM tblUsers"
fp_sDefault=" "
fp_sNoRecords=" <tr><td colspan=4 align=left width=" " 100%" " >No records returned.</td></tr>"
fp_sDataConn=" "
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=" "
fp_sMenuValue=" "
fp_iDisplayCols=4
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>

<!--#include file=" _fpclass/fpdbrgn1.inc" -->
<!--webbot bot=" DatabaseRegionStart" endspan i-checksum=" 15954" --></td>
<td>
<!--webbot bot=" DatabaseResultColumn" s-columnnames=" ID,fUsername,fPassword,fEmail" s-column=" fUsername" b-tableformat=" TRUE" b-hashtml=" FALSE" b-makelink=" FALSE" clientside b-MenuFormat preview=" <font size=" -1" >&lt;&lt;</font>fUsername<font size=" -1" >&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs," fUsername" )%><!--webbot bot=" DatabaseResultColumn" endspan i-checksum=" 18421" --></td>
<td>
<!--webbot bot=" DatabaseResultColumn" s-columnnames=" ID,fUsername,fPassword,fEmail" s-column=" fPassword" b-tableformat=" TRUE" b-hashtml=" FALSE" b-makelink=" FALSE" clientside b-MenuFormat preview=" <font size=" -1" >&lt;&lt;</font>fPassword<font size=" -1" >&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs," fPassword" )%><!--webbot bot=" DatabaseResultColumn" endspan i-checksum=" 18187" --></td>
<td>
<!--webbot bot=" DatabaseResultColumn" s-columnnames=" ID,fUsername,fPassword,fEmail" s-column=" fEmail" b-tableformat=" TRUE" b-hashtml=" FALSE" b-makelink=" FALSE" clientside b-MenuFormat preview=" <font size=" -1" >&lt;&lt;</font>fEmail<font size=" -1" >&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs," fEmail" )%><!--webbot bot=" DatabaseResultColumn" endspan i-checksum=" 12248" --></td>
</tr>
<!--webbot bot=" DatabaseRegionEnd" b-tableformat=" TRUE" b-menuformat=" FALSE" u-dbrgn2=" _fpclass/fpdbrgn2.inc" i-groupsize=" 0" clientside tag=" TBODY" preview=" <tr><td colspan=64 bgcolor=" #FFFF00" align=" left" width=" 100%" ><font color=" #000000" >This is the end of a Database Results region.</font></td></tr>" startspan --><!--#include file=" _fpclass/fpdbrgn2.inc" -->
<!--webbot bot=" DatabaseRegionEnd" endspan i-checksum=" 62730" --></tbody>
</table>




Long Island Lune -> RE: asp page (7/22/2002 16:21:29)

s2bn1,

Thank you for the code segment. I looked it over carefully. All seems to look fine. DRW code usually does not have to get altered. The only times I have seen people change anything in DRW generated code is when they update the SQL Query by hand. Your SQL looks fine. Here it is:

fp_sQry=" SELECT * FROM tblUsers"

Evidently you are asking the database to return ALL records in your user table. But I did notice that you did not send the WEBBOT code that goes along with this code. Is this ALL the DRW generated for you? Above it there should be some WEBBOT code. It would look something like this:


<!--webbot bot=" DatabaseRegionStart" startspan
s-columnnames=" ID,fUsername,fPassword"
s-olumntypes=" 202,202"
s-dataconnection=" dbname" b-tableformat=" TRUE"
b-menuformat=" FALSE" s-menuchoice=" LName" s-menuvalue=" LName"
b-tableborder=" FALSE" b-tableexpand=" FALSE" b-tableheader=" FALSE"
b-listlabels=" TRUE" b-listseparator=" TRUE" i-ListFormat=" 0"
b-makeform=" FALSE" s-recordsource=" SuppNewUser"
s-displaycolumns=" LName" s-criteria=" [User] EQ {User} +" s-order
s-sql=fp_sQry=" SELECT * FROM tblUsers"
b-procedure=" FALSE" clientside SuggestedExt=" asp"
s-DefaultFields=" User=-0+" s-NoRecordsFound=" No records returned."
i-MaxRecords=" 1" i-GroupSize=" 0" BOTID=" 7"
u-dblib=" _fpclass/fpdblib.inc" u-dbrgn1=" _fpclass/fpdbrgn1.inc"
u-dbrgn2=" _fpclass/fpdbrgn2.inc" tag=" TBODY"
local_preview=" <tr><td colspan=64 bgcolor=" #FFFF00" align=" left" width=" 100%" ><font color=" #000000" >Database Results regions will not preview unless this page is fetched from a Web server with a web browser. The following table row will repeat once for every record returned by the query.</font></td></tr>"
preview=" <tr><td colspan=64 bgcolor=" #FFFF00" align=" left" width=" 100%" ><font color=" #000000" >This is the start of a Database Results region.</font></td></tr>"
b-InForm=" TRUE" b-WasTableFormat=" TRUE" --><!--#include file=" _fpclass/fpdblib.inc" -->


Do you have your WEBBOT generated code too??? Then all should work. If not, then you are going to have to regenerate your database results again using the DRW.


After recieving your email, I got confused. So I went back and reread every posting made since the beginning. And I am having trouble trying to figure out what your actual problem is.

When the DRW generated this code for you, did you have problems with it? Can you connect to the database? Does the database do what you want?

Let me know a little more what your goal is.
LLL




s2bn1 -> RE: RE: asp page (7/23/2002 1:39:47)

Sorry Lune for the headache.What I want is I don' t want the DRW to work I want to call the results manually(by writing the code).Atlast I generate a code as below,
<%
Set Conn = Server.CreateObject(" ADODB.Connection" )
sConnection = " Provider=Microsoft.Jet.OLEDB.4.0;" & _
" Data Source=" & Server.MapPath(" /shopping_cart\database\MyDatabase.mdb" ) & " ;" & _
" Persist Security Info=False"
Conn.Open(sConnection)

theQuery = " SELECT fUsername FROM tblUsers"
Call ExecuteSQL(theQuery)

%>
but it is giving errors.Please correct it for me.




Long Island Lune -> RE: asp page (7/23/2002 2:13:46)

s2bn1,

Here you go. I tested this code with my own database. It works good. I placed your variables in it for you. Cut, copy and paste.

<%
Dim Conn
Dim CmdRecord
Dim SQL
Set Conn = Server.CreateObject(" ADODB.Connection" )
Set CmdRecord = Server.CreateObject(" ADODB.Recordset" )
Conn.Open " DBQ=" & Server.Mappath " /shopping_cart/database/MyDatabase.mdb" ) & " ;Driver={Microsoft Access Driver (*.mdb)};"
SQL=" SELECT * fUsername FROM tblUsers"
CmdRecord.Open SQL, DataConn, 1, 3

' Now do whatever processing you need to display what the SQL found in tblUsers.

CmdRecord.Close
Set CmdRecord = Nothing
Conn.Close
Set Conn = Nothing
%>

Question:
I don' t understand... You are creating a very basic SQL query that does not do anything outside the DRW. Wouldn' t it be easier to use the DRW? With the DRW you can format the results in many ways. Using the VBScript/ASP method I just gave you, you have to do it by hand.
LLL.




Long Island Lune -> RE: asp page (7/23/2002 2:16:43)

s2bn1,

WAIT!!!!!!!!!! I made ONE mistake!!!!! Oppps...

In the line:
CmdRecord.Open SQL, DataConn, 1, 3

CHAGE IT TO SAY:
CmdRecord.Open SQL, Conn, 1, 3

NOW the code is completely correct.....
LLL.




s2bn1 -> RE: RE: asp page (7/23/2002 8:29:37)

Dear Lune
I made my page like below but it is not displaying anything.From my table I want to display ID,Song_name,Language.To display these should I have to add anything extra.Please go through it.My url is,
http://www.brinkster21.com/s2bt/index.asp
My full page code is

<html>

<head>
<meta http-equiv=" Content-Type" content=" text/html; charset=windows-1252" >
<meta name=" GENERATOR" content=" Microsoft FrontPage 4.0" >
<meta name=" ProgId" content=" FrontPage.Editor.Document" >
<title>New Page 1</title>
</head>

<body >
<%
Dim Conn
Dim CmdRecord
Dim SQL
Set Conn = Server.CreateObject(" ADODB.Connection" )
Set CmdRecord = Server.CreateObject(" ADODB.Recordset" )
Conn.Open " Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.Mappath (" /s2bt/db/db1.mdb" )
SQL=" SELECT * FROM songs"
CmdRecord.Open SQL, Conn, 1, 3
CmdRecord.Close
Set CmdRecord = Nothing
Conn.Close
Set Conn = Nothing
%>

</body>

</html>





Long Island Lune -> RE: asp page (7/23/2002 13:07:06)

s2bn1,

I' m glad the code worked for you. But if you looked at the code segment I sent you, in the middle of the code, I put a message in the area where you would want to put the code to display the results. I left that part OUT so you could configure it the way you wanted.

The reason you are not getting any results is becasue there is nothing between the:

CmdRecord.Open SQL, Conn, 1, 3

and the:

CmdRecord.Close

code lines.

So then, I opened the connecton, the SQL was performed, then I closed the connection immediately. This is why you did not see it. There is no code to display the results with.

You asked me to put some code in to display certian field results. HOW do you want it diplayed??? There are so many ways. This is why I asked you the question in my last email. I' ll ask it again:

Question:
Wouldn' t it be easier to use the DRW? With the DRW you can format the results in many ways. Using the VBScript/ASP method I just gave you, you have to do it by hand.

Let me know what you want.

Also:
I just went to your page. It would not display. Check your Server.Mappath. You have (" /s2bt/db/db1.mdb" ) in the path. What is s2bt??? Is that your base path??? Usually, you do not need the base path.


Example:

If a website project has a path of: /s2bt/db/db1.mdb and your project actually resides in s2bt, it should be put into the mappath like this: /db/db1.mdb. In other words, you do not need to first BASE path in the mappath. Try removing the s2bt from the path.

Try that and see what happens.
If it still does not display the page, let me know. Also let mwe know what type of display you want.
LLL





s2bn1 -> RE: RE: asp page (7/24/2002 0:59:09)

I want it ot be displayed like below
Id no. Song

1 A

From A there should be a link for <a href=" <%=FP_FieldLink(fp_rs," song_name" )%>" >
I had done this full site in my intranet.But when I published the ODBC connection was giving me troubles.That is why I had gone for all these manual scripts.
Then 2)s2bt is not my base, so that part is ok.But I think as you told I should write script for display.
This is the first time I am going for manual scripts, that is why all these confusions.Sorry for the head ache.




s2bn1 -> RE: RE: asp page (7/24/2002 7:40:16)

Dear Lune
Finally I made with the below code
<html>

<head>
<meta http-equiv=" Content-Type" content=" text/html; charset=windows-1252" >
<meta name=" GENERATOR" content=" Microsoft FrontPage 4.0" >
<meta name=" ProgId" content=" FrontPage.Editor.Document" >
<title>New Page 1</title>
</head>

<body >
<%
Dim Conn
Dim CmdRecord
Dim SQL
Set Conn = Server.CreateObject(" ADODB.Connection" )
Set CmdRecord = Server.CreateObject(" ADODB.Recordset" )
Conn.Open " Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.Mappath (" /s2bt/db/db1.mdb" )
SQL=" SELECT * FROM songs"

CmdRecord.Open SQL, Conn, 1, 3


Response.write CmdRecord(" id" )

Response.write CmdRecord(" film_name" )
CmdRecord.Close
Set CmdRecord = Nothing
Conn.Close
Set Conn = Nothing
%>

</body>

</html>
But the problem now is it is diplaying inly the first record.And also, I want it to be displayed in a table and want give link as I told before.To see the site you can go to www21.brinkster.com/s2bt




Long Island Lune -> RE: asp page (7/24/2002 10:48:04)

s2bn1,

I just been to your site. Your a WEB HOST Provider and you can' t create your own pages??? I was in shock when I saw your site. I was expecting a trainee, not a web host provider.

I will need a little time. I' ll take a look at your request for a display table with hyperlinks sometime today. OK???
LLL




s2bn1 -> RE: RE: asp page (7/24/2002 13:49:23)

Dear Lune
Don' t get shocked, I am only a trainee.I am just uploading my site in brinkster.com.That is all.
Please get me the display and link code .




Long Island Lune -> RE: asp page (7/24/2002 14:15:35)

s2bn1,

Oh, OK. I was wondering about that. Anyway, I will work on your request.
LLL




Long Island Lune -> RE: asp page (7/24/2002 22:14:14)

s2bn1,

Sorry but I had an emergency and had to go out tonight. So I did not get a chance to work on your problem. But I did find this code in the forum that might give you the info you need to solve the problem. Take a look at it. Does it help??? If not, let me know and I will try to get to your problem tomorrow night. Sorry.
LLL

<%
' Declare our variables... always good practice!
Dim cnnGetRows ' ADO connection
Dim rstGetRows ' ADO recordset
Dim strDBPath ' Path to our Access DB (*.mdb) file
Dim arrDBData ' Array that we dump all the data into

' Temp vars to speed up looping over the array
Dim I, J
Dim iRecFirst, iRecLast
Dim iFieldFirst, iFieldLast

' MapPath to our mdb file' s physical path.
strDBPath = Server.MapPath(" fpdb/myDB.mdb" )

' Create a Connection using OLE DB
Set cnnGetRows = Server.CreateObject(" ADODB.Connection" )

' This line is for the Access sample database:
cnnGetRows.Open " DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & strDBPath & " ;"

' If you' re using SQL Server, use this line instead.
' Comment this line out and uncomment the Access one above to
' play with the script on your own server.
' cnnGetRows.Open Application(" SQLConnString" )

' Execute a simple query using the connection object.
' Store the resulting recordset in our variable.
Set rstGetRows = cnnGetRows.Execute(" SELECT * FROM myTable" )

' Now this is where it gets interesting... Normally we' d do
' a loop of some sort until we ran into the last record in
' in the recordset. This time we' re going to get all the data
' in one fell swoop and dump it into an array so we can
' disconnect from the DB as quickly as possible.

arrDBData = rstGetRows.GetRows()

' Some notes about .GetRows:
' The Method actually takes up to 3 optional arguments:
' 1. Rows - A long integer indicating the number of rows to
' retreive from the data source and put into the
' array. Defaults to adGetRowsRest which
' retreives all the remaining rows.
' 2. Start - An ADO bookmark indicating which row we should
' begin from. It can also be one of the following
' three ADO constants: adBookmarkCurrent,
' adBookmarkFirst, adBookmarkLast. Defaults to
' the current row, so if you' ve been moving around
' the RS it' ll pick up wherever you left off.
' 3. Fields - A single field name or number or an array of
' names or numbers indicating which fields to
' retreive and place into the array. Defaults to
' all the columns.
'
' So a example using all the attributes would look like this:
'
' arrDBData = rstGetRows.GetRows(2, adBookmarkCurrent, Array(" id" , " text_field" ))
'
' Which would get 2 rows starting from the current record and
' only returning data from the the id and text_field fields.
'
' FYI: the above line uses an ADO constant from adovbs.inc
' which I haven' t included in this script:
' Const adBookmarkCurrent = 0


' Close our recordset and connection and dispose of the objects.
' Notice that I' m able to do this before we even worry about
' displaying any of the data!
rstGetRows.Close
Set rstGetRows = Nothing
cnnGetRows.Close
Set cnnGetRows = Nothing

' ADO sets up the array so that the elements of the first
' dimension correspond to the DB fields and the elements of
' the second dimension correspond to the records. It might
' seem a little backward, but when you think about it, it
' makes sense because it' s easy to modify the last dimension
' (to hold fewer or more records as needed), but modifying the
' first dimension is difficult so we use it to handle the
' fields which most likely wouldn' t need to be modified.

' Here I get the upper and lower bounds of the field list
' and the records. This gives me some information about the
' data before I start and also allows me to not have to query
' the array for its bounds on each loop.
iRecFirst = LBound(arrDBData, 2)
iRecLast = UBound(arrDBData, 2)
iFieldFirst = LBound(arrDBData, 1)
iFieldLast = UBound(arrDBData, 1)

' Display a table of the data in the array.
' We loop through the array displaying the values.
%>
<table border=" 1" >
<%
' Loop through the records (second dimension of the array)
For I = iRecFirst To iRecLast
' A table row for each record
Response.Write " <tr>" & vbCrLf

' Loop through the fields (first dimension of the array)
For J = iFieldFirst To iFieldLast
' A table cell for each field
Response.Write vbTab & " <td>" & arrDBData(J, I) & " </td>" & vbCrLf
Next ' J
Next ' I
%>

</table>

If this did not help, let me know.
LLL








s2bn1 -> RE: RE: asp page (7/25/2002 7:21:07)

ok, Lune, it is working but now I want to know how give hyperlinks wiht parameters value of a record.Next thing I want is I want to align the records to center of the table and change the font color.
Third thing is I want to know how make a search using form.In the sql when I put " id=' ::t1::' " , it is giving me errors.




Long Island Lune -> RE: asp page (7/25/2002 12:47:36)

s2bn1,

I' m glad to hear that it worked. Very good. Can you give me a hyperlink to the page that the table we are working on is in??? So I can look at it as we progress along??? I will work on your additional requests today.
Thanks,
LLL




Long Island Lune -> RE: asp page (7/25/2002 21:16:23)

s2bn1,

Check out these pages. They contain all the info you need to know to create tables and adjust their colors, size, fonts, etc.

http://www.4guysfromrolla.com/webtech/122899-1.shtml
http://www.4guysfromrolla.com/webtech/111899-1.shtml
http://www.4guysfromrolla.com/webtech/101799-1.shtml

LLL




Long Island Lune -> RE: asp page (7/25/2002 21:21:30)

s2bn1,

Here' s another one for your review.

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=6162&lngWId=4

LLL




s2bn1 -> RE: RE: asp page (7/26/2002 1:25:52)

Daer Lune
I don' t want it to be linked to a page.I should be linked to the values of a field.




s2bn1 -> RE: RE: asp page (7/26/2002 14:01:36)

Lune,
I had gone through the pages, but I didn' t find something to change the colour and font size of the records and at the same time how to give link as I told before in my posts.




Long Island Lune -> RE: asp page (7/26/2002 21:46:42)

s2bn1,

It occurred to me that I have never done what your asking me - on my own. Every time I required something like this, I used the DRW. So we are going to learn how to do this at the same time. For that I need you to post a copy of the exact ASP code you have completed to this point. It would be easier for me to work with your actual ASP code. So post me the completed ASP code (that you have so far) so I can see it and try to work your requirements into it.
Thanks
LLL




s2bn1 -> RE: RE: asp page (7/28/2002 9:25:38)

Lune,
Sorry for the delay.The full code which I used in my site is ,
<html>

<head>
<meta http-equiv=" Content-Type" content=" text/html; charset=windows-1252" >
<meta name=" GENERATOR" content=" Microsoft FrontPage 4.0" >
<meta name=" ProgId" content=" FrontPage.Editor.Document" >
<title>New Page 1</title>
</head>

<body bgcolor=" #000080" >
<%

Dim cnnGetRows ' ADO connection
Dim rstGetRows ' ADO recordset
Dim strDBPath ' Path to our Access DB (*.mdb) file
Dim arrDBData,objTableRS ' Array that we dump all the data into


Dim I, J
Dim iRecFirst, iRecLast
Dim iFieldFirst, iFieldLast

strDBPath = Server.MapPath(" /s2bt/db/db1.mdb" )


Set cnnGetRows = Server.CreateObject(" ADODB.Connection" )


cnnGetRows.Open " DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & strDBPath & " ;"

Set rstGetRows = cnnGetRows.Execute(" SELECT film_name FROM songs where language=' english' " )
arrDBData = rstGetRows.GetRows()

rstGetRows.Close
Set rstGetRows = Nothing
cnnGetRows.Close
Set cnnGetRows = Nothing

iRecFirst = LBound(arrDBData, 2)
iRecLast = UBound(arrDBData, 2)
iFieldFirst = LBound(arrDBData, 1)
iFieldLast = UBound(arrDBData, 1)


%>
<div align=" center" >
<table border=" 0" cellpadding=" 0" cellspacing=" 0" style=" border-collapse: collapse" bordercolor=" #FFFFFF" width=" 100%" id=" AutoNumber1" >
<tr>
<td width=" 25%" align=" center" ><b><font color=" #FFFFFF" >Song name</b></td>
</tr>

<%
For I = iRecFirst To iRecLast

Response.Write " <TABLE BORDER=0 CELLSPACING=1><TR>"
Response.Write " <font color=#FFFFFF>"

For J = iFieldFirst To iFieldLast
Response.Write " <TABLE BORDER=0 CELLSPACING=1><TR>"
Response.Write " <font color=#FFFFFF>"
Response.Write vbTab & " <td>" & arrDBData(J, I) & " </td>" & vbCrLf
Next ' J
Next ' I
%>
</table>





Long Island Lune -> RE: asp page (7/28/2002 12:19:27)

s2bn1,

Thanks. Now I have something to work with.
LLL




Page: [1] 2   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.21875