Raised This Month: $ Target: $400
 0% 

Help with SQL, it saves not only the IP


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 01-05-2011 , 14:42   Help with SQL, it saves not only the IP
Reply With Quote #1

Code:
ip varchar(32)
PHP Code:
new szIp[32]
get_user_ip(idszIpcharsmax(szIp))
            
new 
szTemp[512]
        
format(szTemp,charsmax(szTemp),"INSERT INTO `something` (`ip`)VALUES ('%s');",szIp


The problem is it saves output such as:

Quote:
78.60.101.151:27005
78.56.130.238:27005
Why not just a IP, without port ...



I guess you could ask me why I'm saving something on users IP ? Because I'm writing a php website script where you don't have to log in, it automaticly identifies ur IP and redirects you into your user control panel where you can buy various things such as admin/vip/slot ... I can't detect users steam ID via php :[.
reinert is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode