close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

UserID pulling up wrong user

Thread began 8/15/2014 11:48 am by gail.bergan407744 | Last modified 8/15/2014 3:16 pm by Jason Byrnes | 651 views | 7 replies |

gail.bergan407744

UserID pulling up wrong user

I have a page called lapsed_member_2005_2.php which is supposed to pull up all members whose membership lapsed in 2005. In the attached file you'll see I have the script built (I don't have the Repeat Region or Pagination on the page yet). When I click on View/Edit, it does pull up a member's Update Profile page and it's populated with data, but it's pulling up the wrong member's data. Bizarre; I've never seen this before. Do you know why this is happening? File is attached.

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

gail.bergan407744

see below

Sign in to reply to this post

Jason ByrnesWebAssist

the link you provide is not valid, i get a 404 page not found error.

Sign in to reply to this post

gail.bergan407744

see pm

Sign in to reply to this post

Jason ByrnesWebAssist

your using 2 different recordset's on the page

in this code:
<td width="50"><?php echo($lapsed2005_i->getColumnVal("lastname")); ?>, <?php echo($lapsed2005_i->getColumnVal("firstname")); ?> <?php echo($lapsed2005_i->getColumnVal("middlename")); ?></td>
<td width="30%" align="center"><?php echo($lapsed2005_i->getColumnVal("dateremoved")); ?></td>
<td width="20" align="center"><a href="update_user.php?user_id=<?php echo($listUsers_i->getColumnVal("user_id")); ?>">View/Edit</a><a></a></td>

you use the lapsed2005_i recordset to show the users name, but in the link:
<a href="update_user.php?user_id=<?php echo($listUsers_i->getColumnVal("user_id")); ?>">

you use the listUsers_i recordset to pass the users id, you should be using the lapsed2005_i recordset instead;
<a href="update_user.php?user_id=<?php echo($lapsed2005_i->getColumnVal("user_id")); ?>">

i updated the code on your site to fix the problem.

Sign in to reply to this post

gail.bergan407744

Excellent, thank you very much. It's working now.

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