close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

identifying one page from an associated ID

Thread began 11/22/2013 11:59 am by Jamie | Last modified 11/22/2013 2:03 pm by Jason Byrnes | 2063 views | 7 replies |

Jamie

identifying one page from an associated ID

Hey Jason

Sorry, dont know how to describe this terribly well but here goes.

Have got a db with a product_contents and gallery tables

The product_contents table allows the client to add/remove product and also allows them to select if there is a gallery associated with each of the products entered.

There is a product_contents_results page which, when the client clicks on a link, takes them to gallery_results page passing gallery_results.php?ID=gallery_<?php echo($row_WADAproduct_contents['ProductContentsID']); ?> to identify which product is associated with which gallery

All that works fine but what I am struggling to do is show the ProductName in the <h1> that is associated with the gallery (GalleryID) and product_contents (ProductContentsID)

Hope thst this makes sense but have added the 2 pages here if that helps make it a bit clearer!

Cheers

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

Why use 2 diferant rtecordsets?

surely the gallery and product_contents have a relating column? that you could use in a join query?

http://www.w3schools.com/sql/sql_join.asp

Sign in to reply to this post

Jamie

ahve tried that and it doesnt display the ProductName (and also 'breaks' the associated gallery in that it doesnt show it at all. have attached so you can see the INNER JOIN I created....

Sign in to reply to this post

Jason ByrnesWebAssist

what is the structure of the 2 tables?

Sign in to reply to this post

Jamie

product_contents is:
ProductContentsID
ProductName
ProductContent
ProductThumbnail
BackgroundColour
FontColour
MetaTitle
MetaDescription
URL
Permalink
Live
ProductOrder
ProductDate
ProductGallery
ShowGallery

gallery is:

GalleryID
GalleryImage
GalleryOrder
GalleryPage
Live
GalleryDate

Sign in to reply to this post

Jason ByrnesWebAssist

what column is used to link the 2 tables?

Sign in to reply to this post

Jamie

honest answer is am not sure....

Sign in to reply to this post

Jason ByrnesWebAssist

we resolved this in a connect meeting.

Sign in to reply to this post

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...