david4ie Posted September 30, 2006 Share Posted September 30, 2006 Hi :)Does any body no how to send logged user details to a mysql table?thanks[size=1pt][color=purple][i]edited by CV to remove an ad link. [/i][/color][/size] Link to comment https://forums.phpfreaks.com/topic/22619-sending-ip-refer-details-to-mysql/ Share on other sites More sharing options...
Gaoshan Posted September 30, 2006 Share Posted September 30, 2006 [code]mysql_query("INSERT INTO thetable (thecolumn) values ($_POST['foo'])");[/code]Of course, this assumes you are getting the login data via $_POST. Link to comment https://forums.phpfreaks.com/topic/22619-sending-ip-refer-details-to-mysql/#findComment-101615 Share on other sites More sharing options...
david4ie Posted October 1, 2006 Author Share Posted October 1, 2006 Thanks .. ill try it now:) Link to comment https://forums.phpfreaks.com/topic/22619-sending-ip-refer-details-to-mysql/#findComment-101700 Share on other sites More sharing options...
JasonLewis Posted October 1, 2006 Share Posted October 1, 2006 if you want the users ip u have to use:[code]$ip = $_SERVER['REMOTE_ADDR'];[/code]i think thats there IP.if u want were they were refered from:[code]$refer = $_SERVER['HTTP_REFERER'];[/code] Link to comment https://forums.phpfreaks.com/topic/22619-sending-ip-refer-details-to-mysql/#findComment-101754 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.