Please, please tell me what the heck I am doing wrong.
I am trying to do accomplish 2 things here.
One, make the pictures appear on on 3 columns like:
column1 column2 column2
Almost like
<td></td> <td></td> <td></td>
So far it is appearing on 2 columns
The other thing I am trying to accomplish here is to ensure that description (in this case, More) appear under the picture like:
picture1 picture2 picture3
discription discription discription
Can you please help me again!
I thank you for all the great help on this forum.
Here is the code that I am struggling with.
I am trying to do accomplish 2 things here.
One, make the pictures appear on on 3 columns like:
column1 column2 column2
Almost like
<td></td> <td></td> <td></td>
So far it is appearing on 2 columns
The other thing I am trying to accomplish here is to ensure that description (in this case, More) appear under the picture like:
picture1 picture2 picture3
discription discription discription
Can you please help me again!
I thank you for all the great help on this forum.
Here is the code that I am struggling with.
Code:
Response.Buffer = true
Dim catid, strcat
catid = Request.QueryString("id")
strcat = Request.QueryString ("cat")
If catid = "" OR (IsNumeric(catid) = false) Then
Response.Redirect "home.asp"
End if
Dim catname, productslist
sub productInfo(connObj,category)
q = chr(34)
set cmd = server.CreateObject("ADODB.Command")
cmd.ActiveConnection = connObj
cmd.CommandText = "qryProdsCategory"
cmd.CommandType = adCmdStoredProc
set param = cmd.CreateParameter("theCategory",adInteger,adParamInput,4)
cmd.Parameters.Append(param)
cmd("theCategory") = Cint(category)
set rs = server.CreateObject("ADODB.Recordset")
set rs = cmd.Execute
if not rs.EOF then
catname = rs("catdescription")
strHTML = "<table width='100%' border=0 cellspacing=0 cellpadding=0>"
strHTML = strHTML & "<tr>"
i = 1
while not rs.EOF
strHTML = strHTML & "<td class=bodytextcolor width='33%' align=center>" & vbcrlf
strHTML = strHTML & "<img src=" & q& "images/small/" & rs("cimageurl") &q& " align=" & q& "left"& q & ">" & vbcrlf
strHTML = strHTML & "<br><br>" & rs("cname") & " " & vbcrlf
strHTML = strHTML & "<p><font size=-1><a href="&q&"product.asp?id=" & rs("catalogID") &q&">More >>></a></font></p>" & vbcrlf
if (i mod 2) = 0 then
strHTML = strHTML & "</td></tr>" & vbcrlf
end if
i = i + 1
rs.MoveNext
wend
strHTML = strHTML & ""
else
strHTML = "Product information not found."
catname = "Error"
end if
productslist = strHTML
rs.Close
set rs = nothing
set cmd = nothing
end sub