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] Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
david4ie Posted October 1, 2006 Author Share Posted October 1, 2006 Thanks .. ill try it now:) Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.