close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Create a results table which brings in cross reference data from other tables

Thread began 3/02/2010 5:28 am by neil.batchelor254136 | Last modified 3/18/2010 3:50 pm by neil.batchelor254136 | 749 views | 5 replies

Jason ByrnesWebAssist

really what you are asking is a very broad question. there are a few key concepts you will need to grasp to be abel to create something like this
1) Master detail page set.
a good example of this is the results and detail page created by data assist.

The idea is to have a master Page that lists all of the posible records. Lets use Users as an example, the master would show all of the users. The link to the detail page will pass the User_ID valu as a querystring. This querystring value is used to filter the recordset to return only the one record where the USER_ID column is equal to the querystring that was passed.

2) Joined Queries.
A joined query is a query that returns related information from two or more tables.for you situation, the join query will look like:
SELECT User.* Venue.* Restaurant.* Meeting.*
FROM User
INNER JOIN Venue ON User.User_ID = Venue.User_ID
INNER JOIN Restaurant ON User.User_ID = Restaurant.User_ID
INNER JOIN Meeting ON User.User_ID = Meeting.User_ID



you can modify this to return a specific users Data by adding a where clause:
WHERE Users.User_ID = $_GET['User_ID']


3) SQL math commands
To return a count of records where a column is equal to yes require using a where clause and the count command on the ID column:
SELCT COUNT(id) as recCount From tabelName WHERE colName = 'yes'

you can take the SQL example I gave above and modify it to add the count and the where clause.


If there are specific steps you are struggling on, please let us know.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...