Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9156575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:48:25+00:00 2026-06-17T12:48:25+00:00

Hi I am trying to get one user profile field value ( donation button

  • 0

Hi I am trying to get one user profile field value ( donation button code ) by username. Here are the tables

enter image description here

As I am not much experienced with MySQL and learning so I tried with few condition but somehow I am unable to understand how to check username with userprofile tables and get donation content.

SELECT ^users.userid, ^users.handle, ^userprofile.title, ^userprofile.content 
FROM ^users, ^userprofile
WHERE ^userprofile.userid=^users.handle AND title= 'donation'

and trying to get output using echo $donation['content']

But of course I know the query statement is not right but now I don’t know how to write. Please help me.

Note: ^ is nothing but database prefix

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:48:26+00:00Added an answer on June 17, 2026 at 12:48 pm

    The simplest solution is nested SELECT

    SELECT `content` FROM `userprofile` WHERE `userid` = (SELECT `id` FROM `users` WHERE `handle` = ? LIMIT 1) AND `title` = 'donation' LIMIT 1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get the Oauth authenticated user's profile information using Twitterizer. I believe
I am trying to replace user profile views of the sort /users/1 with /username
I'm trying to get one object from this array and print all of its
I'm trying to get a one-to-many relationship working with grails/gorm. I don't understand how
I have been trying to get this one section of my UI to immediatly
Hello every One i am trying to get Ist date of All months in
Trying to get MGTwitterEngine app to build. Getting one pesky error. The following ERROR.
I'm trying to get java to perform one action after one click and then
I'm trying to get content from an RSS2 feed from one of my sites
Hi I am trying to get this script to show random colours one after

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.