correct syntax would be:
$query_rs_discountdetails = "SELECT * FROM Discounts WHERE disc_code = ". $row_WADAUsers['User_DiscCode'];
make sure that the rs_discountdetails code is on the page before it is used in this query.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.