22, November 2008

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

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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 722 times)
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« on: May 08, 2007, 02: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, 02:38:58 AM by tomz »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: May 08, 2007, 09: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)


Last blog : Just a better Internet portal provided by Google
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« Reply #2 on: May 08, 2007, 11: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, 12:00:27 PM by tomz »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: May 08, 2007, 12:22:34 PM »

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


Last blog : Just a better Internet portal provided by Google
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« Reply #4 on: May 08, 2007, 03: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....

Topic sponsors:
Get a permanent link here for $1.99!


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?
Nov 22, 2008, 03:30:39 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!


Forum Statistics
Total Posts: 37.736
Total Topics: 7.650
Total Members: 4.397
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Janai

37 Guests, 5 Users online :

11 users online today:



Readers

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