Jump to content

Show detail


barney0o0

Recommended Posts

Hi folks, i hope someone could help me with this one.

For the first time im trying to use relational databases. The code below works fine in pulling down all the relevant infomation;


[code]$query_Recordset1 = "SELECT * FROM props, gallery_photos WHERE gallery_photos.photo_category = props.propID";

[/code]

The information is a brief overview. I have a 'more info' button that i would like to pass to another page. Before ive used something like

[code]ebro fincas properties_detail.php?ID=<?php echo $row_Recordset1['propID']; ?>

[/code]

However, how do i change the initial recordset (that i will copy and paste into the detail page) to accomodate this new filter of a passed variable....


many thanks in advance
Link to comment
Share on other sites

Wouldnt this just pull info about the photo table?

....the main content is in the props table. What ive done is to form a record set that selects all info from the props table and link it to the image info with the same ID.

This works fine at the moment (ive pulled down all the records with the correct image)

On the 'more info' button i need to determine which ID the record is from the recordset and pass this onto the detail page

sorry, im just typing this to get it straight in my own mind, by no means are im asking you to suck eggs!
Link to comment
Share on other sites

Sorry, but all we know about your database is what you have in this query

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]SELECT * FROM props, gallery_photos WHERE gallery_photos.photo_category = props.propID [/quote]

which tells us you have tables "props" and "gallery_photos" and a photo_category column joined to props.propID which makes it seem that the props table is category data.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.