che funzione bisogna usare per prendere l'indirizzo ip del visitatore?
![]()
che funzione bisogna usare per prendere l'indirizzo ip del visitatore?
![]()
ok![]()
e come si evita un pareser error del genere?
$query = "INSERT INTO pgu (IP) VALUES ('$_SERVER["REMOTE_ADDR"]')";
http://codecanyon.net/category/all?ref=Manuelandro
And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
memories to be made
prova cosi:
Codice PHP:
$query = "INSERT INTO pgu (IP) VALUES ('".$_SERVER["REMOTE_ADDR"]."')";
funziona grazie!![]()
http://codecanyon.net/category/all?ref=Manuelandro
And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
memories to be made
ehm..sorry..una cosa,
ma nella tabella il campo IP di che Tipo e che lunghezza deve avere?
thx
http://codecanyon.net/category/all?ref=Manuelandro
And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
memories to be made
Potresti fare char o varchar,
dato che un ip è una serie di numeri ma con dei punti in mezzo! ( 127.0.0.1 )
no, perchè ho ftto VARCHAR
Lunghezza/set = 15
e nn me lo inserisce l'ip
http://codecanyon.net/category/all?ref=Manuelandro
And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
memories to be made
...strano!
Prova a stampare l'IP e vedere quanto è lungo;magari
è piu di 15 caratteri...