Failure to login into a db via PHP
#3

Quote:
Originally Posted by JasperM
Посмотреть сообщение
Assuming you are using MySQL, please show a screenshot of the following part of phpinfo():



The second error is standard because the database connection was not succesfully initialized. The first error was most likely because you don't have the pdo_mysql driver.
Yup, managed to find it and fix it, thank you very much, once again Jeppe
Hum, mind giving me a hand in another difficulty I'm having? I'm trying to set up user-flags for players.
In order for this to work I want to use the geoip extension.
I downloaded the dll file of the geoip extension and put it in C:\Program Files (x86)\IIS Express\PHP\v5.5\php.ini
and edited the php.ini's [ExtensionList] -> I added the extension=php_geoip.dll at it's ending and when Included these lines in the body of my website, i got a blank site

PHP код:
<?php
$ip 
"IP.IP.IP.IP";
$country geoip_country_code_by_name($ip);
echo 
$country;
?>
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)