M
|
Mandy 6/30/2010 |
I need help I have two tables! Table: Customers fields: id name seller provider product pay table id name seller provider product pay date value portion I currently do a lookup and insert the following data back again name seller provider product I wonder if it is possible to pull this information automatically.
|
A
|
ann 6/30/2010 |
Mandy, |
O
|
onlline author 6/30/2010 |
Mandy, you need to set up these fields (name, seller, provider, product) as dependent dropdowns. To do it proceed to the Edit as settings dialog on the Visual Editor tab, switch to the Lookup wizard tab and check This dropdown is dependent on option. Check video manual "How to setup dependent dropdown boxes on Edit/Add pages" here: http://xlinesoft.com/phprunner/php-database.htm
|
O
|
onlline author 6/30/2010 |
To me it looks like you have bad database design and you need to add normalization - try this: Table: Customers fields: id name pay table id name seller provider product pay date value portion Then link tables as master/detail on the name field. Also, I advise making seller and product tables and looking up these values too. As for pulling info. automatically (if you update your tables like advised, you won't need to do this): global $dal; $rs = $dal->client->Query("name='".$values["name"]."'",""); $data = db_fetch_array($rs); $values["product"] = $data["product"]; Hope this helps, Mandy
|
A
|
ann 7/1/2010 |
Leonardo, |
O
|
onlline author 7/1/2010 |
Leonardo, it's difficult to tell you what's happening without seeing actual files. Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error (maybe screenshot or two). 'Demo Account' button can be found on the last screen in the program.
|
O
|
onlline author 7/2/2010 |
I created the account and posted the code Tanks
|
A
|
ann 7/5/2010 |
Leonardo, |