RE: [PHP-DB] Re: Select

2005-05-18 Thread David Robley
Miguel Guirao wrote: You are right David, I have an auto_increment field!! What about this: $items2 = mysql_query(SELECT DISTINCT rev FROM rev ORDER BY rev, $link); where rev is a revision field for parts in my wharehouse!!! Does it will work in this case? Thanks -Original

RE: [PHP-DB] Multiselect List

2005-05-18 Thread Ryan Jameson \(USA\)
That's not the problem. The problem is referring to the listbox via javascript. It doesn't like the format: formName.listBoxName[].value it has no problem with formName.listBoxName.value but then PHP doesn't seem to handle it correctly. Ryan From: Dimiter

Re: [PHP-DB] Multiselect List

2005-05-18 Thread Dusty Bin
Ryan, you should be able to refer to the listbox in javascript as document.formName.elements['listBoxName[]']. Hope this helps... Dusty Ryan Jameson wrote: That's not the problem. The problem is referring to the listbox via javascript. It doesn't like the format:

Re: [PHP-DB] Multiselect List. .

2005-05-18 Thread Patel, Aman
Ryan Jameson (USA) wrote: That's not the problem. The problem is referring to the listbox via javascript. It doesn't like the format: formName.listBoxName[].value it has no problem with formName.listBoxName.value but then PHP doesn't seem to handle it correctly. There is a function called

Re: [PHP-DB] Multiselect List

2005-05-18 Thread Brent Baisley
It's not a problem. Just refer to it using elements[] document.form_name.elements[fieldname[Value]] On May 18, 2005, at 2:59 PM, Ryan Jameson ((USA)) wrote: That's not the problem. The problem is referring to the listbox via javascript. It doesn't like the format: formName.listBoxName[].value it

RE: [PHP-DB] Multiselect List

2005-05-18 Thread Dimiter Ivanoff
Well i did not see why the name have to be with brackets [], can you show some code ? If you create the select in the way that i said, the name of the select will not have brackets , and the javascript have to work. --- Ryan Jameson (USA) [EMAIL PROTECTED] wrote: That's not the problem. The

Re: [PHP-DB] Multiselect List. .

2005-05-18 Thread Martin Norland
Patel, Aman wrote: Ryan Jameson (USA) wrote: That's not the problem. The problem is referring to the listbox via javascript. It doesn't like the format: formName.listBoxName[].value it has no problem with formName.listBoxName.value but then PHP doesn't seem to handle it correctly. There is a