Hi,
I have a dhtmlXCombo setup that loads a XML file generated by a PHP file based on user input.
In the PHP file I have set it up so that if the PHP file returns a blank value ($foobar == ‘’), all the rows will be fetched from database table. If a value different from blank value ($foobar != ‘’), then we will do a SQL search with LIKE ‘$foobar%’.
Okay… Fine enough!
Now: If there is no value in the combobox when it is opened up, i want the menu to fetch all rows from database.
How can I accomplish this? Because right now when I try to open the menu if no value is entered, the menu will never open up.
Any suggestion is warmly welcome.
Thank you in advance.