Failure to login into a db via PHP
#4

Trying this code now, tho I need to find a way to extract the country code.
It displays after the "country_code" text in the website:
PHP код:
                    $pageContent 'http://freegeoip.net/json/' .$playeronlinee["IP"];
                    
$mystring strtolower(file_get_contents($pageContent));
                    
$n sscanf($mystring"'country_code': '%s'"$section); 
Reply


Messages In This Thread
Failure to login into a db via PHP - by Amit1998 - 25.05.2016, 00:41
Re: Failure to login into a db via PHP (+REP) - by JasperM - 25.05.2016, 06:45
Re: Failure to login into a db via PHP (+REP) - by Amit1998 - 25.05.2016, 13:35
Re: Failure to login into a db via PHP - by Amit1998 - 25.05.2016, 14:33
Re: Failure to login into a db via PHP - by JasperM - 25.05.2016, 15:44
Re: Failure to login into a db via PHP - by Luicy. - 25.05.2016, 15:53
Re: Failure to login into a db via PHP - by Amit1998 - 25.05.2016, 16:51
Re: Failure to login into a db via PHP - by JasperM - 25.05.2016, 18:14

Forum Jump:


Users browsing this thread: 2 Guest(s)