Sponsored Content
Top Forums Programming Php number array from max, min, step size mysql data Post 302925621 by barrydocks on Tuesday 18th of November 2014 08:12:08 AM
Old 11-18-2014
Php number array from max, min, step size mysql data

I want to create a form with data values in a dropdown list. The values in the dropdown list need to be generated on the fly from max, min and increment values contained in a mysql database.

Hopefully this makes sense, I really have no idea where to start Smilie
Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

MAX SIZE ARRAY Can Hold it

Hi, Do anyone know what's the max size of array (in awk) can be store before hit any memory issue. Regards (3 Replies)
Discussion started by: epall
3 Replies

2. Shell Programming and Scripting

min and max value of process id

We are running a AIX 5.2 OS. Would anyone happen to know what the max value for a process id could be? Thanks jerardfjay :) (0 Replies)
Discussion started by: jerardfjay
0 Replies

3. UNIX for Dummies Questions & Answers

Iterate a min/max awk script over time-series temperature data

I'm trying to iterate a UNIX awk script that returns min/max temperature data for each day from a monthly weather data file (01_weath.dat). The temperature data is held in $5. The temps are reported each minute so each day contains 1440 temperature enteries. The below code has gotten me as far as... (5 Replies)
Discussion started by: jgourley
5 Replies

4. Shell Programming and Scripting

get min, max and average value

hi! i have a file like the attachement. I'd like to get for each line the min, max and average values. (there is 255 values for each line) how can i get that ? i try this, is it right? BEGIN {FS = ","; OFS = ";";max=0;min=0;moy=0;total=0;freq=890} $0 !~ /Trace1:/ { ... (1 Reply)
Discussion started by: riderman
1 Replies

5. Shell Programming and Scripting

Data stream between min and max

Hi, I have a text file containing numbers. There are up to 6 numbers per row and I need to read them, check if they are 0 and if they are not zero check if they are within a given interval (min,max). If they exceed the max or min they should be set to max or min respectively, if they are in the... (4 Replies)
Discussion started by: f_o_555
4 Replies

6. Shell Programming and Scripting

to find min and max value for each column!

Hello Experts, I have got a txt files which has multiple columns, I want to get the max, min and diff (max-min) for each column in the same txt file. Example: cat file.txt a 1 4 b 2 5 c 3 6 I want ouput like: cat file.txt a 1 4 b 2 5 c 3 6 Max 3 6 Min 1 4 Diff 2 2 awk 'min=="" ||... (4 Replies)
Discussion started by: dixits
4 Replies

7. Shell Programming and Scripting

Number of elements, average value, min & max from a list of numbers using awk

Hi all, I have a list of numbers. I need an awk command to find out the numbers of elements (number of numbers, sort to speak), the average value the min and max value. Reading the list only once, with awk. Any ideas? Thanks! (5 Replies)
Discussion started by: black_fender
5 Replies

8. UNIX for Dummies Questions & Answers

Integrate MIN and MAX in a string

I need to use awk for this task ! input (fields are separated by ";"): 1%2%3%4%;AA 5%6%7%8%9;AA 1%2%3%4%5%6;BB 7%8%9%10%11%12;BBIn the 1st field there are patterns composed of numbers separated by "%". The 2nd field define groups (here two different groups called "AA" and "BB"). Records... (8 Replies)
Discussion started by: beca123456
8 Replies

9. Shell Programming and Scripting

Get min and max value in column

Gents, I have a big file file like this. 5100010002 5100010004 5100010006 5100010008 5100010010 5100010012 5102010002 5102010004 5102010006 5102010008 5102010010 5102010012 The file is sorted and I would like to find the min and max value, taking in the consideration key1... (3 Replies)
Discussion started by: jiam912
3 Replies

10. Shell Programming and Scripting

Print root number between min and max ranges

Hi to all, Please help on the following problem, I'm not where to begin, if awk or shell script. I have pairs of ranges of numbers and I need to find the root or roots of ranges based on min Range and Max ranges Example #1: If min range is 120000 and max ranges 124999, it means that are... (5 Replies)
Discussion started by: Ophiuchus
5 Replies
TIX(3)							       Tix Built-In Commands							    TIX(3)

NAME
tixComboBox - Create and manipulate tixComboBox widgets SYNOPSIS
tixComboBox pathName ?options? SUPER-CLASS The TixComboBox class is derived from the TixLabelWidget class and inherits all the commands, options and subwidgets of its super-class. STANDARD OPTIONS
TixComboBox supports all the standard options of a frame widget. See the options(n) manual entry for details on the standard options. WIDGET-SPECIFIC OPTIONS [-anchor anchor] Specifies how the string inside the entry subwidget should be aligned. Only the values "w" or "e" are allowed. When set the "w", the entry is aligned to its beginning. When set to "e", it is aligned to its end. [-arrowbitmap arrowBitmap] Specifies the bitmap to be used in the arrow button beside the entry widget. The default is an downward arrow bitmap in the file $tix_library/bitmaps/cbxarrow [-browsecmd browseCmd] Specifies the command to be called when the user browses through the listbox. This command can be used to provide instant feedback when the user examines items in the listbox before committing a choice. [-command command] Specifies the command to be called when the ComboBox is invoked or when the -value of the ComboBox is changed. [-crossbitmap crossBitmap] Specifies the bitmap to be used in the "cross" button to the left of the entry widget. The default is a bitmap in the file $tix_library/bitmaps/cross [-disablecall- back disableCallback] A boolean value indicating whether callbacks should be disabled. When set to true, the TCL command specified by the -command option is not executed when the -value of the ComboBox. changes. [-disabledforeground disabledforeground] Specifies the fore- ground color to be used when the ComboBox is disabled. [-dropdown dropdown] A Boolean value specifying the style of the ComboBox. When set to "true", the listbox is only displayed temporarily when the arrow button is pressed. When set to "false", the listbox is always dis- played. [-editable editable] Specifies whether the user is allowed to type into the entry subwidget of the ComboBox. [-fancy fancy] A Boolean value specifying whether the cross and tick button subwidgets should be shown. [-grab grab] Specifies the pointer grabbing policy when the listbox is popped up. Only values "global", "local" or "none" are allowed. By default global grab is used. However, when you are developing your application, you may want to use only local grabbing so that in the event of errors, your X display won't be locked up. Name: historyLimit Class: historyLimit Switch: -historylimit Alias: -histlimit Specifies how many previous user inputs can be stored in the history list. [-history history] A Boolean value specifying whether previous user inputs should be stored in the history list. [-label label] Specifies the string to display as the label of this Com- boBox widget. [-labelside labelSide] Specifies where the label should be displayed relative to the entry subwidget. Valid options are: top, left, right, bottom, none or acrosstop. [-listcmd listCmd] Specifies a TCL command to be called every time when the list- box pops up. This option allows you to fill up the listbox on-demand. This option is ignored when the listbox is not in the dropdown style. [-listwidth listWidth] If set, this option controls the width of the listbox subwidget when it is popped up. The option is ignored when the listbox is not in the dropdown style. [-prunehistory prunehistory] Specifies whether duplicated previous user inputs should be pruned from the the history list. Only Boolean values are allowed. [-selection selection] Contains the selection in the ComboBox (the string displayed in the entry subwidget). Depending on the -selectmode, the selection of a ComboBox may be dif- ferent than its -value. [-selection selection] This option stores the temporary selection. When the user types in a text string inside the entry widget, that string is considered as a temporary input and is stored inside the -selection option. The -value option is updated only when the user presses the return key. [-selectmode selectMode] Specifies the how the combobox responds to the mouse button events in the listbox subwidget; can eithet be "browse" or "immediate". The default -selectmode is "browse". See the BINDINGS section below. [-state state] Specifies the whether the ComboBox is normal or disabled. Only the values "normal" and "disabled" are recognized. [-tickbitmap tickBitmap] Specifies the bitmap to be used in the "tick" button to the left of the entry widget. The default is a bitmap in the file $tix_library/bitmaps/tick [-validatecmd validateCmd] Specifies a TCL command to be called when the -value of the ComboBox is about to change. This command is called with one parameter -- the new -value entered by the user. This command is to validate this new value by returning a value it deems valid. [-value value] Specifies the string to be displayed in the entry subwidget of the ComboBox. When queried, the returned value is the last value selected by the user. When the -value option is changed as a result of the config -value widget command, the TCL command specified by the -command option is called. [-variable variable] Specifies the global variable in which the value of the ComboBox should be stored. The value of the ComboBox will be automatically updated when this variable is changed. SUBWIDGETS
Name: arrow Class: Button The down arrow button. Name: cross Class: Button The cross button. Available only when -fancy is set. Name: entry Class: Entry The entry that shows the value of this tixControl. Name: label Class: Label The label subwidget. Name: listbox Class: Listbox The listbox that holds all the list entries. Name: slistbox Class: TixScrolledListBox The scrolled-listbox that provides the scrollbars. Name: tick Class: Button The tick button. Available only when -fancy is set. DESCRIPTION
The tixComboBox command creates a new window (given by the pathName argument) and makes it into a tixComboBox widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the ComboBox such as its cursor and relief. The Tix ComboBox widget is similar to the combo box control in MS Windows. The user can select a choice by either typing in the entry sub- wdget or selecting from the listbox subwidget. WIDGET COMMANDS
The tixComboBox command creates a new Tcl command whose name is the same as the path name of the ComboBox's window. This command may be used to invoke various operations on the widget. It has the following general form: pathName option ?arg arg ...? PathName is the name of the command, which is the same as the ComboBox widget's path name. Option and the args determine the exact behavior of the command. The following commands are possible for ComboBox widgets: pathName addhistory string Add the string to the beinning of the listbox. pathName appendhistory string Append the string to the end of the listbox. pathName cget option Returns the current value of the configuration option given by option. Option may have any of the values accepted by the tixCom- boBox command. pathName configure ?option? ?value option value ...? Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by the tixComboBox command. pathName flash index string Flashes the ComboBox. flash is usually called by a -command procedure to acknowledge to the user that he has selected a value for the ComboBox. pathName insert index string Insert the string into the listbox at the specified index. index must be a valid listbox index. pathName pick index Set the (index)th item in the listbox to be the current value of the ComboBox. As a result, the value of the ComboBox is changed and the TCL command sepcified by the -command option will be called. pathName subwidget name ?args? When no options are given, returns the pathname of the subwidget of the specified name. When options are given, the widget command of the specified subwidget will be called with these options. BINDINGS
[1] If the -selectmode is "immediate", when the user enters a keystroke, clicks on an item or drags the mouse pointer in the listbox, the -value of the ComboBox will be immediately set to this item and the -command procedure will be called. [2] If the -selectmode is "browse", when the user enters a keystroke, clicks on an item or drags the mouse pointer in the listbox, the -selection of the ComboBox will be immediately set to the new content of the entry subwidget; also the -browsecmd procedure will be called. The -value option will be changed only when the user invokes the ComboBox (see [3] below). If the user presses the <Escape> key at any time, any new -selection will be ignored and the text inside the entry subwidget will be restored to the current -value of the ComboBox. [3] If the -dropdown option is true, the user can invoke the ComboBox by releasing the left mouse button over the desired item in the listbox. If the -dropdown option is false, the user can invoke the ComboBox by double-clicking over the desired item in the listbox. In both cases, the user can also invoke the listbox by pressing the <Return> or <Tab> key inside the entry subwidget, or switching the input focus to another widget inside the same toplevel widget BUGS
Starting from Tix vetsion 4.0, the default -value of the ComboBox is the empty string. If you want the ComboBox to show a string by default, you must configure its -value option explicitly. KEYWORDS
Tix(n), ComboBox(n), listbox(n) Tix 4.0 TIX(3)
All times are GMT -4. The time now is 10:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy