Jump to content

[SOLVED] Newbie Need Basic Help With Some PHP Mysql Code


Looktrne

Recommended Posts

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

Link to comment
Share on other sites

  • 1 year later...
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.