Hi,
i am adding ip2country to my site, It works but i have problem in profile.php
if i do not use close(); then i get all over the site No database selectedNo databaseNo database selectedNo database etc etc
ofcourse only from that script down
if i do close(); i do not get that errors arround but ofcourse it closes mysql connection so also i do not get any forward data.
What would be the best solution for this matter?
code added into profile.php:
include_once INCLUDES."ip2c/ip2country.php";
echo $ip2c->get_country_name($user_data['user_ip']);
which works, I get country name of user displayed.
Database is different its not php fusion database, because i do not want to have it in same database.
source code: http://phpweby.co...ip2country
p.s. i have changed db connect and replaced all over the file with additional #2 so it wouldnt beat with config.php same variables
public $mysql_host2='localhost';
public $db_name2='xxx';
public $db_user2='xxx';
public $db_pass2='xxx';
public $table_name2='xxx';
|