FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » users table (what is sq and reg_ip)?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
users table (what is sq and reg_ip)? [message #25156] Sat, 28 May 2005 22:16 Go to next message
enicholse is currently offline  enicholse   United States
Messages: 30
Registered: May 2005
Karma: 0
Member
I want to move my users from egroupware/phpgroupware fud_users table into a stand alone fud installation. The fields look the same except for two, sq and reg_ip. What are they used for?

Aloha, Eric
Re: users table (what is sq and reg_ip)? [message #25163 is a reply to message #25156] Sun, 29 May 2005 15:58 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Both fields can be safely skipped, sq is a session validation sequence key and reg_ip is the registration IP address.

FUDforum Core Developer
Re: users table (what is sq and reg_ip)? [message #29291 is a reply to message #25163] Fri, 09 December 2005 07:37 Go to previous messageGo to next message
viktor is currently offline  viktor   United States
Messages: 12
Registered: November 2004
Karma: 0
Junior Member
For my script i need the reg_ip value. Which is table contain it? I can't found it through sql search in MysqlAdmin.
I want to use it for something like this:
SELECT alias FROM `db_users` WHERE id = 'ID' AND reg_ip = 'reg_ip_value'

thank you

[Updated on: Fri, 09 December 2005 15:48]

Report message to a moderator

Re: users table (what is sq and reg_ip)? [message #29296 is a reply to message #29291] Fri, 09 December 2005 17:40 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The reg_ip value is found inside the users table, so {tbl_prefix}users would be the table you'd query.

Keep in mind that reg_ip is an integer so you need to use ip2long() function to covert the raw ipv4 to that.


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Topic and anonymous user
Next Topic: No confirmation mail after registration
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 19:34:33 GMT 2024

Total time taken to generate the page: 0.02594 seconds