28, May 2012

understanding to select a row up to show data in the formfield ... - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: understanding to select a row up to show data in the formfield ...
« previous next »
Pages: [1] Print

Author Topic: understanding to select a row up to show data in the formfield ...  (Read 1648 times)
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« on: May 08, 2007, 01:31:32 am »

The function get_user_info() is getting the login and pw data from the table:
Code:
... WHERE login = %s AND pw = %s",$this->table_name, $this->ins_string($this->user), $this->ins_string($this->user_pw));
I don't understand this part:
Code:
$this->ins_string($this->user_pw
and even I can't find an explanation for the ins_string() function.

get_profile_data() is calling get_user_info() to get the profile data according to users_id from the users table.
right?

Code:
...$update_profile->create_form_field("user_email" ...
is getting the var "user_email" and puts it vallue in the form.

In a previous  acces_user_class it was possible to call the user profile from the profile tabel only by setting up this:
Code:
$update_profile->user =  $_GET['get_user'];

now its not possible anymore.

What do I have to do    instead of this to call an other user profile with the ext_user_profile class?


I hope you can give me a hand before I'm going mad ...
tom


« Last Edit: May 08, 2007, 01:38:58 am by tomz »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: May 08, 2007, 08:05:09 am »

look like you need learn a little bit more about classes, objects, methods etc, check the manual for the basic knowledge first (I can't see whats you problem)

OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« Reply #2 on: May 08, 2007, 10:58:20 am »

... like you ...learn a little bit more about (your) classes, objects, methods etc ... (?)
yes

Why does this:
Code:
$update_profile->user =  "user1";
show the usere profile with the ext_user_profile class in version 1.8.2 and in 1.9.6 not?
« Last Edit: May 08, 2007, 11:00:27 am by tomz »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: May 08, 2007, 11:22:34 am »

can't say why this is (it's more than a year ago)

OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« Reply #4 on: May 08, 2007, 02:21:41 pm »

two qustions to this method
1. can I use the var $new_id in sprint? It seems not working.
2. How do I get for example the language?
To call it like the followin does not work. Whats wrong?
Quote
$update_profile = new Users_profile_new;
echo "profile city: ".$update_profile->get_profile_data('language');
is not working.

Code:
         function get_profile_data() {
                # $this->get_user_info();
                 $sql = sprintf("SELECT id, ... TBL_USERFIELD_3, TBL_USERFIELD_4, PROFILE_TABLE, $new_id);
...
                         while ($obj = mysql_fetch_object($result)) {
                                 $this->profile_id = $obj->id;
                                 $this->language = $obj->language;
...
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6534
Tags : ext_user_profile Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: understanding to select a row up to show data in the formfield ...
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 10:25:42 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.