Basma Posted September 27, 2010 Report Share Posted September 27, 2010 Sveiki, gribētos uzzināt kā var dabūt klienta IP datu bāze, pēc veiksmīgas reģistrēšanas!! šī kombinācija ir saprotošana ne līdz galam $_SERVER['REMOTE_ADDR']; Kā pareizi vajag realizēt? Tas būtu pie formas? vai kas apstrādā datus? Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted September 27, 2010 Report Share Posted September 27, 2010 http://php.net/manual/en/function.ip2long.php http://www.php.net/manual/en/function.long2ip.php http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html#function_inet-aton http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html#function_inet-ntoa Quote Link to comment Share on other sites More sharing options...
briedis Posted September 27, 2010 Report Share Posted September 27, 2010 $_SERVER['REMOTE_ADDR']; ir mainīgies, kas satur lietotāja IP. Kas te nav skaidrs? Citus datus māki ielikt db, bet nemāki pievienot vienu papildus lauku? Quote Link to comment Share on other sites More sharing options...
Kemito Posted September 27, 2010 Report Share Posted September 27, 2010 briedis - Pēc sevis spriežot kā man bija, es teiktu, ka šis variants būtu tāds pats. Tobish - Nevis nemāk, bet ir slinkums un nevar padomāt!!!! :) Quote Link to comment Share on other sites More sharing options...
Basma Posted September 27, 2010 Author Report Share Posted September 27, 2010 (edited) Paldies visiem tiku galā, slinkumam nav robežu vietām $ip = $_SERVER['REMOTE_ADDR']; $this->input->post ('$user','$password','$email', '$ip_adress'); $data = array( 'user'=>$this->input->post('user'), 'password'=>$this->input->post('password'), 'email'=>$this->input->post('email'), 'ip_adress'=> $ip, ); Edited September 27, 2010 by Basma Quote Link to comment Share on other sites More sharing options...
Faks Posted September 27, 2010 Report Share Posted September 27, 2010 nu to var tak realizēt ar insert datubāzā ta saucamā neradzama informacija kad tiek izpildita post funkcija tad tiek ievietota ip datubāzē . 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.