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 8057593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:04:55+00:00 2026-06-05T09:04:55+00:00

I have a members site which requires login where members create web pages with

  • 0

I have a members site which requires login where members create web pages with specific user-defined variables to enter data which will be shown for public access to these web pages, each of which displays information on a certain product.

There are 7 common web page templates which all members choose from to display custom variables related to them, their company, and a specific product (one of seven). They enter their custom information in to a form, which then places these values in the proper places on the web page templates to be viewed by prospects later

<input name='first_name' value='first_name'>
<input name='last_name' value='last_name'>
<input name='company_name' value='company_name'>
<input name='phone_number' value='phone_number'>
<input name='product_id' value='product_id'>
<input name='product_size' value='product_size'>
<input name='product_color' value='product_color'>
<input name='product_price' value='product_price'>

I need to be able to access the values of these variables pertaining to the specific user and specific product offered by user when a webpage is accessed with the user_id in the URL, ie something like http://domain.com/page_template_1/user_id/product_id.

Right now, only the user has access to these values when he is logged in. I need these values to be accessible to anyone accessing a specific url where user’s custom values his show product information.

  • 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-05T09:04:57+00:00Added an answer on June 5, 2026 at 9:04 am

    For some reason, I couldn’t get anything to work for me except the following. It could have been the way the rest of the code on my page is constructed. I don’t know. But here is what I did which works. Kind of a pain to have to use $row->variable_name instead of $variable_name. But it works.

    $db_connection = new mysqli("", "", "");
    if ($db_connection->connect_errno) {
       echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " .       $mysqli->connect_error;
    }
    
    $id = $_GET['user_id'];
    $query = mysql_query("SELECT * FROM table_name WHERE id = '$id' LIMIT 1") or die(mysql_error()); 
    $row = mysql_fetch_object($query);
    
    echo " // HTML GOES HERE
    
      $row->first_name
      $row->last_name
      $row->company_name
    
     ";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a members site where users are given up to 7 web page
I have two pages, NonMember.aspx and Member.aspx. If a user comes to the site,
I intended to create a class which only have static members and static functions.
I have a web-site based on PHP, to which I would like to add
I have a members table in which every site member is the unique id.
I have a site where members login to their account (FormsAuth). I would like
I have a site with about 30,000 members to which I'm adding a functionality
I have a small site which has 200 members. Below is code for the
On my site I have a jquery function which retrieves data from another (secured)
I have a site which houses many various directories (such as admins, members, demo

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.