First, you can see what I'm trying to do here:
Database is MySQL, there are two fields that are of concern to me. ProductCode and ProductSize. (stored in one table, just different columns)
For example... there is a ring that has one product code 12345, but has 4 different sizes. (size5,size6,size7,size8). The first applet is the one should show the additional field (productsize) IF the product size field has information in it. (currently right now, the database shows NULL for this field, other than those that SHOULD have information)
There are two applets, one that shows an additional field.
Here is the main site, so you can see what I'm talking about.
http://www.giftedunicorn.com/category.php
If you choose category, and choose there are two different types of products, ones that DON'T have a size and ones that DO have a size. JEWELRY items should load the FIRST applet because it has a size variable.
Example:
http://www.giftedunicorn.com/details.php?ProductCode=27473
The FIRST applet should load... with SIZE (in the dropdown) in the applet.
The SECOND applet should load for all other instances of the query.
Example:
http://www.giftedunicorn.com/details.php?ProductCode=32421
This should load the SECOND applet withOUT the dropdown menu selection for size. It should show just the add button.
The applets are both working correctly, I've been able to change the settings so that each one will load correctly.
The query that I would LIKE to run, would be something of the following:
SELECT * FROM Products WHERE ProductCode = (passed variable).
Then, in the if...else statements, I'd like to somehow add the ProductSize to be determined...
I've tried different methods, such as:
SELECT * FROM Products WHERE ProductCode = (passed variable) AND/OR ProductSize IS/IS NOT NULL. This apparently doesn't work as it returns strange values.
Main database = DATABASE
Table in database = Products
Columns in Products = ProductCode, ProductSize, ProductID (key)
I think that I answered all the questions that I can... I've been struggling with this for quite a while. The thing is, there was another page that I designed a while back, but the only way for me to make it work back then was to create another query and pass the variable also. I'm not quite sure if this is what I need to do this time too... I'm just recreating a whole new setup because the last one was pretty sloppy.
Also, FYI, I'm using dreamweaver MX to create the site and pages.
Thanks again Jeremuck and others who are trying, I REALLY appreciate it!
Matt