![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problems iterating in RUBY while extracting info from YAML, Pls help! | wrapster | High Level Programming | 1 | 10-05-2008 03:38 PM |
| Extracting information from text fields. | spindoctor | UNIX for Dummies Questions & Answers | 24 | 06-09-2007 02:17 PM |
| Extracting information from a template | Ernst | Shell Programming and Scripting | 4 | 03-07-2007 01:18 AM |
| extracting from tar.bz2 | Raom | UNIX for Advanced & Expert Users | 1 | 03-07-2006 10:33 AM |
| 'make' problems (compliation problems?) | xyyz | UNIX for Advanced & Expert Users | 5 | 11-05-2001 10:47 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Problems with extracting information
Hi all,
PHP Code:
Ex : Results from database are : comp_id comp_name 1 comp1 2 comp2 3 comp3 and in session I have stored $_SESSION['comp_id'] equals 2 ; now I'd like to get the following result in html from php : [code=text] <select name="comp" id="comp" style="width:130px;"> <option value="2">comp2</option> <option value="1">comp1</option> <option value="3">comp3</option> </select> [/code] OR [code=text] <select name="comp" id="comp" style="width:130px;"> <option value="2">comp2</option> <option value="3">comp1</option> <option value="1">comp3</option> </select> [/code] it really doesn't matter as long as item from session is located 1st on the list. Thank you and I apologize for my bad English. |
| Bookmarks |
| Tags |
| unresolved, unresolved for months, unresolved for weeks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|