473,395 Members | 1,574 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,395 software developers and data experts.

getRow / array question (need help to expand my brain)

Here's my quandry

my bundles table

ID bottleTotal price
==========================
1 1 10.00
2 6 8.00
3 12 7.50

I want to create a quick and easy select list that looks like this...

<SELECT name="qtyANDprice" class="default">

<option value="1,10.00">1</option>
<option value="2,10.00">2</option>
<option value="3,10.00">3</option>
<option value="4,10.00">4</option>
<option value="5,10.00">5</option>
<option value="6,10.00">6</option>
<option value="7,8.00">7</option>
<option value="8,8.00">8</option>
<option value="9,8.00">9</option>
<option value="10,8.00">10</option>
<option value="11,8.00">11</option>
<option value="12,7.50">12</option>

</SELECT>

I am foggy as how to make this mappen. I think that I am looking up
the getRow/recordset to arry concept, but that is as far as I am.

I'm looking for a learning insight here... Thanks!

Oct 6 '05 #1
3 1783
jo*********@gmail.com wrote:
Here's my quandry

my bundles table

ID bottleTotal price
==========================
1 1 10.00
2 6 8.00
3 12 7.50

Check out this article:
http://www.aspfaq.com/show.asp?id=2467

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Oct 6 '05 #2
jo*********@gmail.com wrote:
I want to create a quick and easy select list that looks like this...
<option value="1,10.00">1</option>
<option value="2,10.00">2</option>
<option value="3,10.00">3</option>
<option value="4,10.00">4</option>
<option value="5,10.00">5</option>
<option value="6,10.00">6</option>
<option value="7,8.00">7</option>
<option value="8,8.00">8</option>
<option value="9,8.00">9</option>
<option value="10,8.00">10</option>
<option value="11,8.00">11</option>
<option value="12,7.50">12</option> ...


Please tell me you are not depending on client-side code to set your prices,
and that this is for display purposes only.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Oct 6 '05 #3
uhhh...

I have three different prices based upon qty.

1 to 5 = 10.00
6 to 11 = 8.00
12 + = 7.50

I just want to match those prices to qty on this drop down. I am
passing those values (price and qty) to another page.

i am selecting a recordset based upon a particular value, and my
bundles table then returns 3 recordsets

qty 1 price 10.00
qty 6 price 8.00
qty 12 price 7.50

I can't figure out how to seperate the prices into something and then
write them back into the drop list based upon the value of the qty.

Hope that makes sense.

Thanks

Oct 6 '05 #4

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

Similar topics

2
by: Dino | last post by:
I need to create a public multi-dim array that can hold a mixture of string and int values. I will need to search this array for a value and return a value from a subscript. This array will...
1
by: jrs362 | last post by:
One more problem... I need to write a method(Which i'm calling "expand") that takes an int array as one of its parameters and returns a new int array that is 5 elements longer. The contents of the...
8
by: linuxfedora | last post by:
Which one is faster or any other better way to do it. I have an array of byte with name: sendBuffer, and i will like to make some thing like that the value started from index of the array in...
5
dlite922
by: dlite922 | last post by:
I can't believe I haven't come across this in all of my PHP programming (or my brain is currently locked)...I need to delete an array from an array that i'm traversing through with a foreach. ...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.