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