Looktrne Posted June 18, 2007 Share Posted June 18, 2007 I have a code on my website that displays some options for user profile it creates a link for the member to view there profile... problem is it creates a link to the member ID rather than the profile ID so it displays the wrong profile I need it to grab from the dt_profile id field rather than the member_id field Please have a look and tell me how to modify this code if you could.. $fMemberProfile = f(q("SELECT status FROM dt_profile WHERE member_id='$fMember[id]'")); // Setup links: $call_image = '<img src="images/item.gif" width="16" height="16">'; $lb = "<a href=index.php"; $le = "</a>"; $prev_profile_lb = "$call_image$lb?page=view_profile&id=$fMember[id]>"; $prev_profile_le = $le; the variable $fMember[id] ends up as the member_id from dt_profile it needs to come back as the id if anyone can help please advise... I am very new at this but not completly numb Paul Quote Link to comment Share on other sites More sharing options...
Looktrne Posted June 18, 2007 Author Share Posted June 18, 2007 I solved it Paul Quote Link to comment Share on other sites More sharing options...
newbaby Posted July 14, 2008 Share Posted July 14, 2008 Can you please tell me what you did to fix? Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.