close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Glitch with receiving a table ID

Thread began 11/25/2014 9:42 am by iain331081 | Last modified 11/26/2014 9:13 am by Jason Byrnes | 1003 views | 5 replies |

iain331081

Glitch with retreiving a table ID

I have a fairly standard one to many set up in with a couple of tables (features and revision).

With a page listing the feature details and a link to add revision items. The page where the revision is added should show the FeatureID and Project_Name form the features table for reference.

However, it doesn't seem to work if its the first bit of revision (although it seems to add it correctly with the correct FeatureID. But it does all work correctly if I then go and add a second bit of revision.

More details below...

Sign in to reply to this post

Jason ByrnesWebAssist

looks like the problem is in the Redirect URL for the insert on the add_revision/index.php page. It was set to use the rsFeature recordset, I changed it to use FeatureID form variable instead

Sign in to reply to this post

iain331081

Thanks Jason - that looks like its fixed the redirect when adding the first item of revision.

But its still not displaying the FeatureID and Project_Name fields on the Add Revision page.

For example, if you look at the WA test 2 you added, you can see test 1 listed correctly. If you click on Add Revision to add a second item, it correctly shows 704 - wa test 2 on that page.

But if you look at WA test 3 that I've added and click on Add Revision the first time, its drawing a blank there.

Sign in to reply to this post

Jason ByrnesWebAssist

That is because you're recordset was set to use inner join. I set it to use left join instead to fix the problem.

with inner join, it will return a result if there is a match on both sides, where no revision record existed yet, it would not return a result.

see this page for more details o the join types:
http://www.sitepoint.com/understanding-sql-joins-mysql-database/

Sign in to reply to this post

iain331081

Thanks Jason.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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