I found this script (with different column names):
Quote
mysql_select_db($database_MySQL, $MySQL);
$query = "SELECT * FROM 9_projectdata ORDER BY customer";
$sql = mysql_query($query)
or trigger_error(mysql_error(), E_USER_WARNING);
It works great. But I also want to save the primary index in another column of the table. When I choose a customer then the corresponding primary key is also to be saved. Can you help me with this?
Yes, that's correct. I need to save the primary key of the choosen customer in a table where the registration is done for the working hours on that specific project.
When I add this line:
$form -> setDynamicOptions( $options, $useArrayKeyAsValue = true );
I see all the array information on top of my screen as soon as I open it. Can you give me a hint how to solve this?
New projects are stored in a separed db. What I want to do with this form is that people can get the customer name and book the hours they worked for that specific customer. For reporting I also need the customer customer ID. Otherwise I can't make a join between de two db.
I like the type ahead function very much. That's why I don't want to use the dbSelect function (for now ;-))