SearchSearch   ProfileProfile   Log inLog in   RegisterRegister 

MAC addresses in database

 
Post new topic   Reply to topic    FirstSpot Forum Index -> Pre-sales Support Forum
View previous topic :: View next topic  
Author Message
ryanslimmon



Joined: 24 Jun 2009
Posts: 23
Location: Virden, MB

PostPosted: Fri May 07, 2010 7:04 pm    
Post subject: MAC addresses in database

Specifically, in the fsusr table there's a field called "signupmac", there are other fields that have a mac address in them, but this is the one i'm going to focus on.

Note: i'm using SQL Server as my backend database.

Now, in the field the mac address contains a number. Would you let me know how I convert this to the hexidecimal?

Thanks,

Regards,
Back to top
alan
Forum facilitator


Joined: 26 Sep 2003
Posts: 4381

PostPosted: Mon May 10, 2010 12:44 pm    
Post subject:

You can either:

1) use our PHP function make_mac_name (found in common_functions.php)

or

2) do it manually. Refer to http://patronsoft.com/forum/viewtopic.php?t=2675 for a guideline. Note that this post is about converting the hex MAC to number. You need to do it in reverse.
_________________
~ Patronsoft Limited ~


Last edited by alan on Tue May 11, 2010 2:24 am; edited 1 time in total
Back to top
ryanslimmon



Joined: 24 Jun 2009
Posts: 23
Location: Virden, MB

PostPosted: Mon May 10, 2010 2:41 pm    
Post subject:

Exactly what I need.

Thanks Alan!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    FirstSpot Forum Index -> Pre-sales Support Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group