28, May 2012

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

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


« on: May 16, 2007, 09:48:10 pm »

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

It is only to decide between UPDATE and INSERT?

Huh is this a riddle?

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


« Reply #2 on: May 16, 2007, 11:11:09 pm »

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 16, 2007, 11:13:05 pm 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 16, 2007, 11:14:23 pm »

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

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


« Reply #4 on: May 16, 2007, 11:43:58 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?
« Last Edit: May 17, 2007, 01:25:41 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 #5 on: May 17, 2007, 11:22:03 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?

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

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6577
Tags : $ident 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: What's the duty of $ident ?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 10:30: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!






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.