Retrieve Custom User Fileds


Subject: Retrieve Custom User Fileds
Ok, I have a custom CMS page that has an iframe in a block with a url for retrieve and display a weather info. That url needs a zipcode for locate the specific weather data.

What I want is to create a custom field in the user accounts to store the zipcode for each user and retrieve it when the user calls the custom php page to send that variable into the weather url and display the weather info fot that specific user.


I know how to do the custom field part, but I dont have any idea how to call that field and insert it in the url to make the weather info user specific.

I hope someone understand this and can bring me some help.

Thanks in advance.


Site: www.forobebe.com
Version: icy phoenix 1.1.0.15a
Language: Spanish
DB: mySQL 5
PHP: 4

Profile PM  
Subject: Re: Retrieve Custom User Fileds
try to play with

Code: [Download] [Hide]
  1. $userdata['name_of_the_field_in_db'] 


that should be the field that u created.
Explore into users table to look how it's named

Subject: Re: Retrieve Custom User Fileds
I will check, thanks.

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.3997s (PHP: 4% SQL: 96%)
SQL queries: 29 - Debug Off - GZIP Enabled