Hmmm, i dont realy understand what do you mean, and i dont know which mysql tables are you using External image (may be gone)
so here is very simple example:
you have to add the country row to your users table
UPDATE `users` SET `country`='".$two_letter_country_code."' WHERE id='".$user_id."'
and to select users (South africans)
SELECT * FROM `users` WHERE `country`='ZA' LIMIT 0, 10
well im using lavalair wml script
here is user sql table
--
-- Table structure for table ibwf_users
CREATE TABLE ibwf_users (
id int(100) NOT NULL auto_increment,
name varchar(30) NOT NULL default '',
pass varchar(60) NOT NULL default '',
birthday varchar(50) NOT NULL default '',
sex char(1) NOT NULL default '',
location varchar(100) NOT NULL default '',
perm char(1) NOT NULL default '0',
posts int(100) NOT NULL default '0',
plusses int(100) NOT NULL default '0',
signature varchar(100) NOT NULL default '',
avatar varchar(100) NOT NULL default '',
email varchar(50) NOT NULL default '',
site varchar(50) NOT NULL default '',
browserm varchar(50) NOT NULL default '',
ipadd varchar(30) NOT NULL default '',
lastact int(100) NOT NULL default '0',
regdate int(100) NOT NULL default '0',
chmsgs int(100) NOT NULL default '0',
chmood int(100) NOT NULL default '0',
shield char(1) NOT NULL default '0',
gplus int(100) NOT NULL default '0',
budmsg varchar(100) NOT NULL default '',
lastpnreas varchar(100) NOT NULL default '',
lastplreas varchar(100) NOT NULL default '',
shouts int(100) NOT NULL default '0',
pollid int(100) NOT NULL default '0',
rbcid varchar(255) NOT NULL default '',
hvia char(1) NOT NULL default '1',
lastvst int(100) NOT NULL default '0',
battlep int(100) NOT NULL default '0',
PRIMARY KEY (id),
UNIQUE KEY name (name),
KEY id (id)
) TYPE=MyISAM AUTO_INCREMENT=1 ;
--
-- Dumping data for table ibwf_users
and
i want to show in users profile like this
More Information
Send PM
add to buddy list
Member's ID:
Status: Vinyl Shaker
A/S/L: 18/Male/
IP country:South Africa Flag image
Topics: 9
Posts: 127/152
PMs IN: 26 - OUT: 52
Game Plusses: 93
Chat Posts: 22
Fun Points: 0
Shouts: 28/42
Joined rw: 02 07 07-17:23:51
Last Active: 07 10 07-18:20:37
Last Visit: 07 10 07-12:13:11
Browser: Opera
E-mail:
Signature: