Log in

View Full Version : Create a lookup to point to a DB where I specify a query



ismailc
11-18-2008, 12:05 PM
Hi, I need help!

On my page I have no connection to the db, how do I create a lookup to point to a DB where I specify a query and result to my dropdown.


Regards

james438
11-18-2008, 10:52 PM
could you rephrase that? I don't understand what you are asking?

ismailc
11-19-2008, 06:52 AM
Hi, I do have acces with server name & password with db - i just dont know how to the code for setting up the connection string.

I need to create connection specifying all db credentials and then specify query for lookup:

I have a blank html page:

<html>
<body>
<select id="test">
<options>lookup</options>
</select>
</body>
</html>

I then need to pass the selected value to a parameter

Please assist!

NXArmada
11-19-2008, 02:00 PM
Check this website out: http://www.php-mysql-tutorial.com/

This will assume your using or going to be using PHP+MySQL.