Link to home
Start Free TrialLog in
Avatar of printmedia
printmedia

asked on

How can I search a sql database via my hosted website

Hi all.

I have a very basic question: If we have a website that is hosted by 3dcart, and we want to be able to search a sql table from the website how can we do this?

The end user logs onto the website with their userid and they enter an item number in a box.

When they click a button on the website it will display the product information (this info resides on 3dcart's tables) but we want to include the item's price based on the userid. The item's price based on the userid is not on 3dcart.

Our table (myTable) is in one of our databases (myDatabase) on one of our servers (myServer). The table has 3 fields: userid, product, price.

How can I do this?

I've read that I could only do this via ASP or server side scripting.

Any advice would be great!

Thank you in advance!
Avatar of George Fendler
George Fendler
Flag of United States of America image

I don't know anything about 3dcart. But, if it uses an sql database, you might be able to "join" a table with your userid to the 3dcart pricing table and retrieve the pricing level of the customer all in one query--assuming that I have understood your question correctly.
Avatar of printmedia
printmedia

ASKER

Right that's what we want to do. But we don't know how to start, is there a website that can show me some sample code?
ASKER CERTIFIED SOLUTION
Avatar of George Fendler
George Fendler
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial