22, November 2008

What's the duty of $ident ? - 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: What's the duty of $ident ?
« previous next »
Pages: [1] Print

Author Topic: What's the duty of $ident ?  (Read 1330 times)
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« on: May 16, 2007, 10:48:10 PM »

It is only to decide between UPDATE and INSERT?
« Last Edit: May 16, 2007, 10:50:00 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 #1 on: May 16, 2007, 11:53:42 PM »

It is only to decide between UPDATE and INSERT?

Huh is this a riddle?


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 17, 2007, 12:11:09 AM »

Huh is this a riddle?
It's a question if I'm right in my assumption accourding to the topic. I hope not a riddel for you ...
:-)
« Last Edit: May 17, 2007, 12:13:05 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 #3 on: May 17, 2007, 12:14:23 AM »

Huh is this a riddle?
It's a question if I'm right in my assumption accourding to the topic. I hope not a riddel for you ...
:-)

maybe you can provide some example code...


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 17, 2007, 12:43:58 AM »

maybe you can provide some example code...
ok
Code:
if (!empty($ident)) {
$sql = sprintf("UPDATE ...$this->ins_string($ident, "int"), $_SESSION['user_id']);
That's taken from ext_user_profile.php.

Could it be that $ident is even used to identify the user like: using the id from the profile table to find the users_id?
1. How is the user identified while using  update_user_profile.php?
2. How is the id identified while using it by a user that this user cant view an other record?
« Last Edit: May 17, 2007, 02:25:41 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 #5 on: May 17, 2007, 12:22:03 PM »

maybe you can provide some example code...
ok
Code:
if (!empty($ident)) {
$sql = sprintf("UPDATE ...$this->ins_string($ident, "int"), $_SESSION['user_id']);
That's taken from ext_user_profile.php.

Could it be that $ident is even used to identify the user like: using the id from the profile table to find the users_id?
1. How is the user identified while using  update_user_profile.php?
2. How is the id identified while using it by a user that this user cant view an other record?

to use the profile extension the user ID need to set first.


Last blog : Just a better Internet portal provided by Google
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6577
Tags : $ident 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: What's the duty of $ident ?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Nov 22, 2008, 04:22:23 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.