close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

using two colonms in detail page

Thread began 12/17/2012 12:17 pm by randyw2394710 | Last modified 12/17/2012 2:31 pm by Jason Byrnes | 883 views | 3 replies |

randyw2394710

using two colonms in detail page

i have record set with two db tables galleries and images
i have url editGallery.php?id=2 working
how do i get the information to show on the detail page
also some insight on using sesion would that be esier

Attached Files
chooseGallerytest.zip
editGallerytest.zip
Sign in to reply to this post

Jason ByrnesWebAssist

on the edit gallery page, create a hidden form element that will capture the id url variable:

<input type="hidden" name="id" id="id" value="<?php echo(isset($_GET['id'])?$_GET['id']:""); ?>

then in the Update record behavior, set the redirect URL to the details page and pass the id variable:

details.php?id=<?php echo(isset($_POST['id'])?$_POST['id']:""); ?>


on the details page, you can use the id URL variable to filter the recordset.

Sign in to reply to this post

randyw2394710

i did this editGallery.php?=<?php echo(isset($_POST['id'])?$_POST['id']:""); ?>
no id goes to the url
then on the edit page i did this
input type="hidden" name="id" id="id" value="<?php echo(isset($_GET['id'])?$_GET['id']:""); ?>

record set on the edit page looks like this
ELECT pg1_gallery.* , count(pg1_gallery_images.imgsrc) AS `number of images` , pg1_gallery_images.* , pg1_gallery_images.photoComment , pg1_gallery_images.created , pg1_gallery_images.watermark_text , pg1_gallery_images.upDated , pg1_gallery.updated , pg1_gallery.id , pg1_gallery.created , pg1_gallery.GalleryName , pg1_gallery_images.gallery_id
FROM pg1_gallery LEFT OUTER JOIN pg1_gallery_images ON pg1_gallery.id = pg1_gallery_images.gallery_id
WHERE id = Paramid OR ( -1= Paramid2 AND id= ParamSessionid)
ORDER BY pg1_gallery.id
paramid looks like this $_GET['id']

Sign in to reply to this post

Jason ByrnesWebAssist

i did not say to use a post variable going to the edit page, that wasn't something i said you should change.

you had it correct before.

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