
11-06-04, 03:51 AM
|
|
Newbie Coder
|
|
Join Date: Oct 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
value format
this is my code. the data displays on my select box properly. as you will notice i am putting the data from 2 fields in my table in a row of my select box. i have in my form 2 textbox (ID, Date) to check if the data selected from the select box is being displayed. however, if I select something there is no data being displayed in my 2 textbox. I think the option should have a value such as echo "<option value=(this is where my problem starts)>".AppendSpace...
i really don't know what to do anymore. pls help me.
I also tried but nothing is displayed in my selectbox:
what should be my code then?
hope someone here could help me.
|

11-07-04, 02:26 AM
|
|
Junior Code Guru
|
|
Join Date: Oct 2004
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hello franches,
your way:
is not common since you use double identifiers for single option. since the option derives from the same row, you can just set the value into the ActId and then check it using your "VwRc_onchange()"
__________________
just an ignorant noob with moronic solution...
|

11-07-04, 09:55 PM
|
|
Newbie Coder
|
|
Join Date: Oct 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i have attached my file. hope you have the time to examine it. i have difficulty on how to explain it but i know if you'll be able to see my code you'll know what's my problem.
FilterView.php contains only parts of the code related to my problem. My problem now with my code is the data being displayed inside my select box is only the 1st data of the month. Currently there are five data in my database and only 1 data is displayed which is 2 2004-11-02. second, when i select that data in my pass.ActId box, the data displayed is 2 2004-11-02 which is supposedly it will display 2 and in my pass.ActDate the data displayed is 11 only which should be 2004-11-02. hope you understand my problem.
thank you very much. i am hoping for your response.
|

11-07-04, 10:31 PM
|
|
Junior Code Guru
|
|
Join Date: Oct 2004
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hello franches,
did you mean this one?
it should be
and
should be
regards,
__________________
just an ignorant noob with moronic solution...
|

11-08-04, 01:22 AM
|
|
Newbie Coder
|
|
Join Date: Oct 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thanks all data are now displaying but if I select something all the data are being displayed at my pass.ActId box and xxx is being displayed at pass.ActDate. so I noticed that
i forgot something in
there should be ',' comma in between the appendspace
with this code it's now working and if I select something only the 2 which is the ActId is displayed in my pass.ActId and 2004-11-02 is displayed in my pass.ActDate. HOWEVER, in my select box the comma is also being displayed which is not nice to look at. in my select box this is what you will see. what will I do with the comma? i really need your help.
|

11-08-04, 09:05 AM
|
|
Junior Code Guru
|
|
Join Date: Oct 2004
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
you can simply rewrite it as:
regards,
edit:
$rsTable['ACtDate'] is a typo, so you should write $rsTable['ActDate'] instead
__________________
just an ignorant noob with moronic solution...
Last edited by moronovich; 11-08-04 at 09:26 AM.
|

11-08-04, 08:40 PM
|
|
Newbie Coder
|
|
Join Date: Oct 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
doing this code would only dispaly on my select box the dates but I still need to display the ActId and some other data such as PrjCode, ActCode and MapNumber since these are data inputed by the user. That's my problem right now and stuck with it. Hoping for your response again. Thanks.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|