Reply
php + sql help
Old 04-30-2007, 05:38 PM php + sql help
Junior Talker

Posts: 2
I'm hoping someone can help me out with this. I'm somewhat new to PHP and I'm just not sure how to go about this.

The first thing I need to do is connect to a MS SQL database using a system DSN called "pricingdb". I'm not sure the proper string for an MS database.

Next, I need to perform a SQL query that is a little advanced for my knowledge. I need to pull the product price (LISTPRICE) from my table (PRODUCTS). Where this gets tricky is that I need to pull the price for more than one product, but the products are not sequential. So I need to pull the price for "R100", "R105", "R105E", and "R122".

Now, when I display the product price, they will NOT be displayed in any kind of row. Each product will be displayed separately, with accompanying product description text (which is not in the DB). So I'm figuring the easiest way to go about this is to put the prices in variables so I can just display the price variable where needed.

Can anyone help me with this?
kingfire is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-01-2007, 05:33 AM Re: php + sql help
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
http://www.webcheatsheet.com/php/con...l_database.php

Enjoy
__________________
If you like my posts ... TK is appreciated:)
Web Directory | Blog
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Reply     « Reply to php + sql help
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11029 seconds with 12 queries