PDA

View Full Version : Table Relationships


paul313952
05-26-2009, 05:31 AM
hi Folks,
Im putting this help request out to the community as ive burned up a lot of hours trying to solve the issue.
Im currently building a furniture commerce site in php using the Super Suite and have information stored in multiple mySQL tables that I would like to pull into the results.
Im looking to pull in the information for a particular range from 1 table called prodrange and the associated products in this particular range from a table called products
The field im referencing to is ProdRangeID in both tables.
I need to be able to choose a range and have the ranges' associated products display on a page.
I can do this without issue if everything was stored in a single table but for practical reasons i need to have multiple tables working in relation to each other.
Do I need to create a variable above what Dataassist generates in order for this to work?

Any help will be greatly received and a virtual beer sent on to you from me. :-)

Thanks

Suggs

Nigel
05-26-2009, 07:01 AM
You need to join the two tables. In advanced view edit the query to join the tables, it would be something like this, where X is your ProdRangeID value:

SELECT *
FROM products INNER JOIN prodrange ON products.ProdRangeID = prodrange.ProdRangeID
WHERE prodrange.ProdRangeID = X

HTH.

DMCKIB339504
10-19-2009, 04:19 AM
I created a CSS Form, added Mail. Changed to post. Beautiful page yet whenever I start DataAssist or SecurityAssist to connect to MySQL (which I have gone through hosting and all database are ok as well as tables)

Yet I cannot pull up tables in Dreamweaver cs4. Vista.

My goal is to have form emailed and fill information sent to MySQL tables. Everything looks great, but connects to MySQL and does not show Tables.

You are my last connection as all see everything on their end is ok.

What am I missing to pull up tables?

Thanks

Jason Byrnes
10-19-2009, 09:06 AM
We will need some more details on the problem.

Do you get an error message when you open DataAssist or SecurityAssist?

Have you created a Database Connection in Dreamweaver?

In the Database Connection window, what happens when you click the test button? Does it test OK?


If so, on the database tab, expand the connection, then expand the tables, are the table listed here?


Is your site definition created properly? See the following for information on crteating a Dreamweaver site definition:
http://www.ipvac.com/kb/entry/151/

If you are using a remote server for your testing, you may want to consider using a local server:
http://www.ipvac.com/kb/entry/144/

DMCKIB339504
10-19-2009, 07:53 PM
Yes everything connects to Dreamweaver cs4 all is ok in every way except when I start DataAssist or SecurityAssist it shows database, but cannot connect because of lack of tables. I have reinstalled many times yet error continues. The CSS Form builders form is awsome online, but I cannot get it to connect to the MySQL Tables.

I have done extensive renaming of tables and users and passwords, but nothing works. Email also works. Through all my research, something comes down to an error or lack of a number from the addition of form and email.

Server is ok. Something in the way the software puts it together is the problem as it started when these were added.

Thanks

Jason Byrnes
10-21-2009, 03:40 PM
I have created a support ticket so we can look into the problem further.

To view your support ticket, log into your support history:
http://www.webassist.com/mywebassist/supporthistory.php