473,387 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

GetRows Random <td></td> Output

Jim
Hey all,

I am trying to generate a random image output that will appear like this -
http://wd-santabarbara.com/atex/ .

I am not sure of where to start on this or even if I am using the right
search terms for google. All I could find was info for Random Records.

Any hints, help, or advice will be sincerely appreciated.

Thanks,
Jim

I use this to display image table data :

s = "<table>" & vbcrlf & vbcrlf

' loop through the rows
For iRowLoop = iStart to iStop
ImageID=aResults(0,iRowLoop)
thmbpath=aResults(1,iRowLoop)
Filename=aResults(2,iRowLoop)
strThumb = "Yada"

' test for start of new row
If c > 0 And c Mod numColumns = 0 Then
s = s & "</tr>" & vbCrLf & "<tr>"
End If

' output current column
s = s & "YADA" & vbCrLf
' increment column counter
c = c + 1
Next

' add any missing columns to the last row
Do While c Mod numColumns <> 0
s = s & "<img src=""graphics/trans.gif"" width=""125""
height=""1""></td>"
c = c + 1
Loop

s = s & "</tr></table>"
Jul 19 '05 #1
1 2169
ask the microsoft.public.sqlserver.programming about returning a recordset
in random order

"Jim" <So*******@nospam.TotalSantaBarbara.com> wrote in message
news:phuvb.4431$m24.2412@fed1read02...
Hey all,

I am trying to generate a random image output that will appear like this -
http://wd-santabarbara.com/atex/ .

I am not sure of where to start on this or even if I am using the right
search terms for google. All I could find was info for Random Records.

Any hints, help, or advice will be sincerely appreciated.

Thanks,
Jim

I use this to display image table data :

s = "<table>" & vbcrlf & vbcrlf

' loop through the rows
For iRowLoop = iStart to iStop
ImageID=aResults(0,iRowLoop)
thmbpath=aResults(1,iRowLoop)
Filename=aResults(2,iRowLoop)
strThumb = "Yada"

' test for start of new row
If c > 0 And c Mod numColumns = 0 Then
s = s & "</tr>" & vbCrLf & "<tr>"
End If

' output current column
s = s & "YADA" & vbCrLf
' increment column counter
c = c + 1
Next

' add any missing columns to the last row
Do While c Mod numColumns <> 0
s = s & "<img src=""graphics/trans.gif"" width=""125""
height=""1""></td>"
c = c + 1
Loop

s = s & "</tr></table>"

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: aa | last post by:
I am traing to output the following HTML string from PHP: "<td><input name='".$i-2."' size='2' type='text' onBlur='myfunction(".$i-2.")'></td>" But it somehow mistreats $i-2. PHP does not throw...
0
by: Matt Adams | last post by:
I want to move the following <PRE> defintion to a css file: <TABLE><TR><TD><PRE>sample text</PRE></TD> <TD> not predefined font</TD></TR></TABLE> should be <TABLE><TR><TD class=aaa>sample...
0
by: jason | last post by:
Hello. I've got a DOS script that generates <TD>s for image files in a directory. I then plug it's output into an html table producing thumbnail like image boxes (the script is also setting the...
2
by: js | last post by:
I have a table rendered with XSLT. The first column has a radio button controls for user to make a selection for a particular row. All the values in the remaining columns are all concated with a...
2
by: bissatch | last post by:
Hi, I am trying to use JavaScript to write a table column on a web page. The code is as follows: <html> <head> <script> function displaycount() {
3
by: Henry Johnson | last post by:
Okay - I'm spinning my wheels on this one... can someone help me figure out how to programmatically populate a table cell as follows (from C# code-behind)? I've tried using a Literal control in the...
5
by: mahesr | last post by:
I want to match some particular text between <tr>and </tr> or <td>and </td>.... in PHP. like below............ <table><tr> CATEGORY: <td><font face="Verdana" size="1" color="#A000A0"> Wedding...
7
by: Xiaoyan | last post by:
Hi,everyone: I have a problem now. I can't get the information between the <tr><td> and </td></tr>. for example: I use this regular expression can't get it, I don't know why....
2
by: markszlazak | last post by:
I'm a relatively slow response of table cells changing their background color with mouseover/our in IE6 (Win 2K) but the response is fine (fast) in Firefox. Why? The code is below. Sorry about the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.