21
Shiroku
delete from xoops_session?
  • 2006/11/4 10:31

  • Shiroku

  • Just popping in

  • Posts: 33

  • Since: 2006/9/24


can i delete all record from xoops_session without problem?



22
Shiroku
Re: get the user id
  • 2006/9/30 11:19

  • Shiroku

  • Just popping in

  • Posts: 33

  • Since: 2006/9/24


thank's, thank's, thank's!

This is the code that I used:

if ($xoopsUser){
 foreach(
$xoopsUser->vars as $key=>$value){
 
$user[$key] = $value;
 }
 foreach(
$user as $key=>$value){
 foreach(
$user[$key] as $key1=>$value1){
 if (
$key1 == 'value')
 
$user[$key] = $value1;
 }
 }
 echo 
"Your user id is: ".$user['uid'];
}
?>



bye



23
Shiroku
Re: user id, can I get it?
  • 2006/9/25 9:40

  • Shiroku

  • Just popping in

  • Posts: 33

  • Since: 2006/9/24


thank's!

In my case, if I want show the user id in the page, I have to substitute the
$xoopsTpl->assign('user',$user);

for
echo $user['uid'];


Is it right?



24
Shiroku
user id, can I get it?
  • 2006/9/24 12:49

  • Shiroku

  • Just popping in

  • Posts: 33

  • Since: 2006/9/24


I created a new table in my DB, and I created a members' form (the form is showed after the users logged in).

In my new table, there is a column 'user-id' that will contain the user id of the user that logged in (the 'uid' column of the table called xoops_user).

How can I get this value?
How can I know who is the members that will compile the form?


PS: I'm sorry for my English...




TopTop
« 1 2 (3)



Login

Who's Online

158 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 158


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits