Forums / WEB Scripts
Ip2country
Started on the old forum in December 2007 · view the original in the archive · old links redirect here
49 replies · 5,805 views · started 18 years ago · 1 min read
TL;DR · summary of 49 replies
Guest asked how to install country flags for Lavalair profiles based on user IPs. Ori provided code snippets and SQL queries, suggesting a solution using the Wapside script functions. Guest had trouble getting the correct flag showing up consistently across all users' profiles. Guest's final working code snippet used ip() function correctly fetching IP from database instead of $_SERVER variables.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
Sort replies:
Oldest
Top voted
Newest
QU
Yes my host is doing server upgrades should be back online shortly please try again then
QU
Yes my host is doing server upgrades should be back online shortly please try again then
LE
any1 has latest sql for ip to count?
LE
someone please help me with ip to country with rw script i still could not get it to work External image (may be gone) please give me exact coding to add this function
SW
LE
BL
all l get is this......
Idle For: Online!
Browser: Opera
network:
plz help thankz
SP
index.php?action=viewuser
$subno = mysql_fetch_array(mysql_query("SELECT subno FROM ibwf_users WHERE id='".$who."'"));
echo "[b]Network:[/b] $subno[0]</br>";
login.php
$netwerk=network(ip(),1);
mysql_query("UPDATE ibwf_users SET subno='".$netwerk."' WHERE name='".$uid."'");
Add another clm to ibwf_users. name it subno varchar(255) not null default Unknown
MA
EJ
hm.. I think have one function missing from that sc.. Hm.. Where function ip2long($ip) ? Huhu.. Lala..